mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Update RuboCop to 0.76.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18884 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# This configuration was generated by
|
||||
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
|
||||
# using RuboCop version 0.75.0.
|
||||
# using RuboCop version 0.76.0.
|
||||
# The point is for the user to remove these configuration records
|
||||
# one by one as the offenses are removed from the code base.
|
||||
# Note that changes in the inspected code, or installation of new
|
||||
@@ -534,7 +534,7 @@ Naming/RescuedExceptionsVariableName:
|
||||
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
||||
|
||||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
||||
# AllowedNames: io, id, to, by, on, in, at, ip, db
|
||||
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
||||
Naming/UncommunicativeMethodParamName:
|
||||
Enabled: false
|
||||
|
||||
@@ -592,8 +592,14 @@ Performance/StringReplacement:
|
||||
- 'app/helpers/settings_helper.rb'
|
||||
- 'lib/redmine/core_ext/string/conversions.rb'
|
||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||
- 'test/functional/repositories_cvs_controller_test.rb'
|
||||
- 'test/functional/repositories_git_controller_test.rb'
|
||||
- 'test/helpers/application_helper_test.rb'
|
||||
- 'test/integration/repositories_git_test.rb'
|
||||
- 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb'
|
||||
- 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb'
|
||||
- 'test/unit/repository_cvs_test.rb'
|
||||
- 'test/unit/repository_git_test.rb'
|
||||
|
||||
# Configuration parameters: Include.
|
||||
# Include: app/models/**/*.rb
|
||||
@@ -1403,6 +1409,13 @@ Style/RaiseArgs:
|
||||
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
||||
- 'lib/redmine/sort_criteria.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantCondition:
|
||||
Exclude:
|
||||
- 'app/controllers/messages_controller.rb'
|
||||
- 'app/controllers/previews_controller.rb'
|
||||
- 'app/models/issue.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantConditional:
|
||||
Exclude:
|
||||
@@ -1411,6 +1424,21 @@ Style/RedundantConditional:
|
||||
- 'app/models/enumeration.rb'
|
||||
- 'lib/redmine/field_format.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantInterpolation:
|
||||
Exclude:
|
||||
- 'app/helpers/my_helper.rb'
|
||||
- 'app/helpers/queries_helper.rb'
|
||||
- 'app/models/query.rb'
|
||||
- 'app/views/common/feed.atom.builder'
|
||||
- 'app/views/journals/index.builder'
|
||||
- 'lib/redmine/helpers/time_report.rb'
|
||||
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
||||
- 'lib/redmine/wiki_formatting.rb'
|
||||
- 'test/functional/versions_controller_test.rb'
|
||||
- 'test/functional/watchers_controller_test.rb'
|
||||
- 'test/unit/repository_mercurial_test.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantParentheses:
|
||||
Exclude:
|
||||
@@ -1442,6 +1470,14 @@ Style/RedundantReturn:
|
||||
Style/RedundantSelf:
|
||||
Enabled: false
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/RedundantSort:
|
||||
Exclude:
|
||||
- 'app/models/import.rb'
|
||||
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
||||
- 'test/functional/issues_controller_test.rb'
|
||||
- 'test/unit/member_test.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
||||
# SupportedStyles: slashes, percent_r, mixed
|
||||
@@ -1603,36 +1639,6 @@ Style/UnlessElse:
|
||||
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
||||
- 'lib/redmine/unified_diff.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/UnneededCondition:
|
||||
Exclude:
|
||||
- 'app/controllers/messages_controller.rb'
|
||||
- 'app/controllers/previews_controller.rb'
|
||||
- 'app/models/issue.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/UnneededInterpolation:
|
||||
Exclude:
|
||||
- 'app/helpers/my_helper.rb'
|
||||
- 'app/helpers/queries_helper.rb'
|
||||
- 'app/models/query.rb'
|
||||
- 'app/views/common/feed.atom.builder'
|
||||
- 'app/views/journals/index.builder'
|
||||
- 'lib/redmine/helpers/time_report.rb'
|
||||
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
||||
- 'lib/redmine/wiki_formatting.rb'
|
||||
- 'test/functional/versions_controller_test.rb'
|
||||
- 'test/functional/watchers_controller_test.rb'
|
||||
- 'test/unit/repository_mercurial_test.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/UnneededSort:
|
||||
Exclude:
|
||||
- 'app/models/import.rb'
|
||||
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
||||
- 'test/functional/issues_controller_test.rb'
|
||||
- 'test/unit/member_test.rb'
|
||||
|
||||
# Cop supports --auto-correct.
|
||||
Style/VariableInterpolation:
|
||||
Exclude:
|
||||
|
||||
Reference in New Issue
Block a user