mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Update RuboCop Rails to 2.19 (#37248).
git-svn-id: https://svn.redmine.org/redmine/trunk@22200 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0b59699ef6
commit
87dc1d9058
15
.rubocop.yml
15
.rubocop.yml
@ -157,6 +157,17 @@ Rails/RootPathnameMethods:
|
||||
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
|
||||
|
||||
@ -209,10 +220,6 @@ Style/IdenticalConditionalBranches:
|
||||
- 'config/initializers/10-patches.rb'
|
||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||
|
||||
Style/InverseMethods:
|
||||
InverseMethods:
|
||||
:include?: ~
|
||||
|
||||
Style/NegatedIfElseCondition:
|
||||
Enabled: false
|
||||
|
||||
|
||||
@ -569,7 +569,7 @@ Rails/Exit:
|
||||
- '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
|
||||
@ -765,6 +765,7 @@ Rails/RedundantTravelBack:
|
||||
- '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'
|
||||
|
||||
2
Gemfile
2
Gemfile
@ -105,7 +105,7 @@ group :test do
|
||||
# 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")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user