Rails/SquishedSQLHeredocs:
Enabled: false
+Rails/ThreeStateBooleanColumn:
+ Exclude:
+ - 'db/migrate/009_add_hide_mail_pref.rb'
+ - 'db/migrate/059_add_roles_assignable.rb'
+ - 'db/migrate/082_add_messages_locked.rb'
+ - 'db/migrate/086_add_custom_fields_searchable.rb'
+ - 'db/migrate/102_add_custom_fields_editable.rb'
+ - 'db/migrate/20120115143100_add_repositories_is_default.rb'
+ - 'db/migrate/20120127174243_add_custom_fields_multiple.rb'
+ - 'db/migrate/20210704125704_add_twofa_required_to_groups.rb'
+
Rails/WhereExists:
Enabled: false
- 'config/initializers/10-patches.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-Style/InverseMethods:
- InverseMethods:
- :include?: ~
-
Style/NegatedIfElseCondition:
Enabled: false
- 'config/initializers/10-patches.rb'
- 'config/routes.rb'
-# This cop supports safe autocorrection (--autocorrect).
+# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: Include, AllowedMethods, AllowedPatterns.
# Include: app/models/**/*.rb
# AllowedMethods: order, limit, select, lock
- 'test/integration/sudo_mode_test.rb'
- 'test/system/sudo_mode_test.rb'
+# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/ReflectionClassName:
Exclude:
- 'lib/redmine/nested_set/issue_nested_set.rb'
# RuboCop
gem 'rubocop', '~> 1.50.0', require: false
gem 'rubocop-performance', '~> 1.17.1', require: false
- gem 'rubocop-rails', '~> 2.18.0', require: false
+ gem 'rubocop-rails', '~> 2.19.1', require: false
end
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")