mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 00:36:14 +02:00
Update Rubocop Rails to 2.32 (#42044).
git-svn-id: https://svn.redmine.org/redmine/trunk@23826 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -169,6 +169,13 @@ Rails/FindEach:
|
||||
Rails/HelperInstanceVariable:
|
||||
Enabled: false
|
||||
|
||||
Rails/Output:
|
||||
Exclude:
|
||||
- 'config/routes.rb'
|
||||
- 'lib/redmine/diff.rb'
|
||||
- 'lib/redmine/diff_table.rb'
|
||||
- 'test/unit/lib/redmine/scm/adapters/*.rb'
|
||||
|
||||
Rails/Pluck:
|
||||
Exclude:
|
||||
# `pluck` is not available in Gemfile
|
||||
|
||||
@@ -328,7 +328,7 @@ Naming/VariableNumber:
|
||||
- 'test/unit/project_test.rb'
|
||||
|
||||
# Configuration parameters: Severity, Include.
|
||||
# Include: app/models/**/*.rb
|
||||
# Include: **/app/models/**/*.rb
|
||||
Rails/ActiveRecordOverride:
|
||||
Exclude:
|
||||
- 'app/models/email_address.rb'
|
||||
@@ -399,7 +399,7 @@ Rails/EagerEvaluationLogMessage:
|
||||
- 'app/controllers/application_controller.rb'
|
||||
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
|
||||
# Include: **/app/**/*.rb, **/config/**/*.rb, **/lib/**/*.rb
|
||||
Rails/Exit:
|
||||
Exclude:
|
||||
- 'config/environment.rb'
|
||||
@@ -407,7 +407,7 @@ Rails/Exit:
|
||||
- 'config/routes.rb'
|
||||
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
# Include: **/app/models/**/*.rb
|
||||
Rails/HasAndBelongsToMany:
|
||||
Exclude:
|
||||
- 'app/models/changeset.rb'
|
||||
@@ -422,7 +422,7 @@ Rails/HasAndBelongsToMany:
|
||||
- 'app/models/user.rb'
|
||||
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
# Include: **/app/models/**/*.rb
|
||||
Rails/HasManyOrHasOneDependent:
|
||||
Exclude:
|
||||
- 'app/models/auth_source.rb'
|
||||
@@ -456,7 +456,7 @@ Rails/I18nLocaleTexts:
|
||||
- 'app/models/mailer.rb'
|
||||
|
||||
# Configuration parameters: IgnoreScopes, Include.
|
||||
# Include: app/models/**/*.rb
|
||||
# Include: **/app/models/**/*.rb
|
||||
Rails/InverseOf:
|
||||
Exclude:
|
||||
- 'app/models/board.rb'
|
||||
@@ -480,7 +480,7 @@ Rails/InverseOf:
|
||||
- 'app/models/wiki_page.rb'
|
||||
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/controllers/**/*.rb, app/mailers/**/*.rb
|
||||
# Include: **/app/controllers/**/*.rb, **/app/mailers/**/*.rb
|
||||
Rails/LexicallyScopedActionFilter:
|
||||
Exclude:
|
||||
- 'app/controllers/projects_controller.rb'
|
||||
@@ -492,7 +492,7 @@ Rails/LinkToBlank:
|
||||
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: Include.
|
||||
# Include: config/routes.rb, config/routes/**/*.rb
|
||||
# Include: **/config/routes.rb, **/config/routes/**/*.rb
|
||||
Rails/MatchRoute:
|
||||
Exclude:
|
||||
- 'config/routes.rb'
|
||||
@@ -501,15 +501,6 @@ Rails/MatchRoute:
|
||||
Rails/NegateInclude:
|
||||
Enabled: false
|
||||
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/**/*.rb, config/**/*.rb, db/**/*.rb, lib/**/*.rb
|
||||
Rails/Output:
|
||||
Exclude:
|
||||
- 'config/routes.rb'
|
||||
- 'lib/redmine/diff.rb'
|
||||
- 'lib/redmine/diff_table.rb'
|
||||
|
||||
Rails/OutputSafety:
|
||||
Enabled: false
|
||||
|
||||
@@ -538,7 +529,7 @@ Rails/Present:
|
||||
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
# Include: **/app/models/**/*.rb
|
||||
Rails/ReadWriteAttribute:
|
||||
Exclude:
|
||||
- 'app/models/auth_source_ldap.rb'
|
||||
@@ -597,7 +588,7 @@ Rails/TimeZone:
|
||||
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
# Include: **/app/models/**/*.rb
|
||||
Rails/Validation:
|
||||
Enabled: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user