Class: RuboCop::Cop::Isucon::Mysql2::NPlusOneQuery
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Isucon::Mysql2::NPlusOneQuery
- Extended by:
- AutoCorrector
- Includes:
- RuboCop::Cop::Isucon::Mixin::Mysql2XqueryMethods, RuboCop::Cop::Isucon::Mixin::NPlusOneQueryMethods
- Defined in:
- lib/rubocop/cop/isucon/mysql2/n_plus_one_query.rb
Overview
Note:
If Database
isn't configured, auto-correct will not be available. (Only offense detection can be used)
Note:
For the number of N+1 queries that can be detected by this cop, there are too few that can be corrected automatically
Checks that there’s no N+1 query
Constant Summary
Constants included from RuboCop::Cop::Isucon::Mixin::NPlusOneQueryMethods
RuboCop::Cop::Isucon::Mixin::NPlusOneQueryMethods::ENUMERABLE_METHOD_NAMES, RuboCop::Cop::Isucon::Mixin::NPlusOneQueryMethods::LOOP_TYPES, RuboCop::Cop::Isucon::Mixin::NPlusOneQueryMethods::MSG, RuboCop::Cop::Isucon::Mixin::NPlusOneQueryMethods::POST_CONDITION_LOOP_TYPES
Constants included from RuboCop::Cop::Isucon::Mixin::Mysql2XqueryMethods
RuboCop::Cop::Isucon::Mixin::Mysql2XqueryMethods::NON_STRING_WARNING_MSG
Method Summary
Methods included from RuboCop::Cop::Isucon::Mixin::NPlusOneQueryMethods
Methods included from RuboCop::Cop::Isucon::Mixin::DatabaseMethods
#connection, #enabled_database?, #find_table_name_from_column_name