Naming/PredicateName:
Enabled: false
+Rails/ActionControllerFlashBeforeRender:
+ # False positive in actions where `redirect_to_referer_or` is used
+ Enabled: false
+
+Rails/ActionControllerTestCase:
+ Enabled: false
+
+Rails/ActionOrder:
+ Enabled: false
+
+Rails/ActiveSupportOnLoad:
+ Exclude:
+ # TODO: Need to check the impact on plugins. Disable for now.
+ - 'lib/redmine/preparation.rb'
+
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/20120714122200_add_workflows_rule_fields.rb'
Rails/HelperInstanceVariable:
Enabled: false
+Rails/Pluck:
+ Exclude:
+ # `pluck` is not available in Gemfile
+ - 'Gemfile'
+
+Rails/RootPathnameMethods:
+ Enabled: false
+
Rails/SquishedSQLHeredocs:
Enabled: false
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
-# Whitelist: find_by_sql
-# AllowedMethods: find_by_sql
-# AllowedReceivers: Gem::Specification
+# Whitelist: find_by_sql, find_by_token_for
+# AllowedMethods: find_by_sql, find_by_token_for
+# AllowedReceivers: Gem::Specification, page
Rails/DynamicFindBy:
Enabled: false
- 'config/routes.rb'
# This cop supports safe autocorrection (--autocorrect).
-# Configuration parameters: Include, IgnoredMethods.
+# Configuration parameters: Include, AllowedMethods, AllowedPatterns, IgnoredMethods.
# Include: app/models/**/*.rb
+# AllowedMethods: order, limit, select, lock
# IgnoredMethods: order, limit, select, lock
Rails/FindEach:
Exclude:
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
-# AllowedMethods: respond_to, define_method
+# AllowedMethods: define_method, mail, respond_to
Style/SymbolProc:
Enabled: false
# RuboCop
gem 'rubocop', '~> 1.37.1'
gem 'rubocop-performance', '~> 1.15.0'
- gem 'rubocop-rails', '~> 2.15.0'
+ gem 'rubocop-rails', '~> 2.17.2'
end
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")