mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Update RuboCop to 0.77 (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@19320 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -48,12 +48,12 @@ Layout/SpaceInsideBlockBraces:
|
|||||||
Layout/SpaceInsideHashLiteralBraces:
|
Layout/SpaceInsideHashLiteralBraces:
|
||||||
EnforcedStyle: no_space
|
EnforcedStyle: no_space
|
||||||
|
|
||||||
|
Lint/SuppressedException:
|
||||||
|
AllowComments: true
|
||||||
|
|
||||||
Layout/TrailingWhitespace:
|
Layout/TrailingWhitespace:
|
||||||
AllowInHeredoc: true
|
AllowInHeredoc: true
|
||||||
|
|
||||||
Lint/HandleExceptions:
|
|
||||||
AllowComments: true
|
|
||||||
|
|
||||||
Metrics:
|
Metrics:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# This configuration was generated by
|
# This configuration was generated by
|
||||||
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
|
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
|
||||||
# using RuboCop version 0.76.0.
|
# using RuboCop version 0.77.0.
|
||||||
# The point is for the user to remove these configuration records
|
# The point is for the user to remove these configuration records
|
||||||
# one by one as the offenses are removed from the code base.
|
# one by one as the offenses are removed from the code base.
|
||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: with_first_argument, with_fixed_indentation
|
# SupportedStyles: with_first_argument, with_fixed_indentation
|
||||||
Layout/AlignArguments:
|
Layout/ArgumentAlignment:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'config/application.rb'
|
- 'config/application.rb'
|
||||||
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
|
||||||
@@ -20,14 +20,6 @@ Layout/AlignArguments:
|
|||||||
- 'test/integration/api_test/projects_test.rb'
|
- 'test/integration/api_test/projects_test.rb'
|
||||||
- 'test/integration/api_test/wiki_pages_test.rb'
|
- 'test/integration/api_test/wiki_pages_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
|
||||||
# SupportedHashRocketStyles: key, separator, table
|
|
||||||
# SupportedColonStyles: key, separator, table
|
|
||||||
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
|
||||||
Layout/AlignHash:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/ClosingParenthesisIndentation:
|
Layout/ClosingParenthesisIndentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
@@ -138,13 +130,13 @@ Layout/ExtraSpacing:
|
|||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
||||||
Layout/IndentFirstArgument:
|
Layout/FirstArgumentIndentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
||||||
Layout/IndentFirstArrayElement:
|
Layout/FirstArrayElementIndentation:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/nested_set/issue_nested_set.rb'
|
- 'lib/redmine/nested_set/issue_nested_set.rb'
|
||||||
- 'lib/redmine/nested_set/project_nested_set.rb'
|
- 'lib/redmine/nested_set/project_nested_set.rb'
|
||||||
@@ -157,7 +149,15 @@ Layout/IndentFirstArrayElement:
|
|||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
||||||
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
||||||
Layout/IndentFirstHashElement:
|
Layout/FirstHashElementIndentation:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
|
||||||
|
# SupportedHashRocketStyles: key, separator, table
|
||||||
|
# SupportedColonStyles: key, separator, table
|
||||||
|
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
|
||||||
|
Layout/HashAlignment:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
@@ -373,15 +373,6 @@ Lint/EmptyWhen:
|
|||||||
- 'app/controllers/issues_controller.rb'
|
- 'app/controllers/issues_controller.rb'
|
||||||
- 'app/controllers/wiki_controller.rb'
|
- 'app/controllers/wiki_controller.rb'
|
||||||
|
|
||||||
# Configuration parameters: AllowComments.
|
|
||||||
Lint/HandleExceptions:
|
|
||||||
Exclude:
|
|
||||||
- 'app/controllers/activities_controller.rb'
|
|
||||||
- 'app/models/import.rb'
|
|
||||||
- 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
|
|
||||||
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
|
||||||
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
|
||||||
|
|
||||||
Lint/InterpolationCheck:
|
Lint/InterpolationCheck:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/user.rb'
|
- 'app/models/user.rb'
|
||||||
@@ -403,6 +394,14 @@ Lint/ParenthesesAsGroupedExpression:
|
|||||||
- 'test/unit/attachment_test.rb'
|
- 'test/unit/attachment_test.rb'
|
||||||
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Lint/RedundantStringCoercion:
|
||||||
|
Exclude:
|
||||||
|
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
||||||
|
- 'test/functional/repositories_filesystem_controller_test.rb'
|
||||||
|
- 'test/functional/repositories_git_controller_test.rb'
|
||||||
|
- 'test/functional/repositories_mercurial_controller_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Lint/SendWithMixinArgument:
|
Lint/SendWithMixinArgument:
|
||||||
Exclude:
|
Exclude:
|
||||||
@@ -412,13 +411,14 @@ Lint/SendWithMixinArgument:
|
|||||||
Lint/ShadowingOuterLocalVariable:
|
Lint/ShadowingOuterLocalVariable:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Configuration parameters: AllowComments.
|
||||||
Lint/StringConversionInInterpolation:
|
Lint/SuppressedException:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
|
- 'app/controllers/activities_controller.rb'
|
||||||
- 'test/functional/repositories_filesystem_controller_test.rb'
|
- 'app/models/import.rb'
|
||||||
- 'test/functional/repositories_git_controller_test.rb'
|
- 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
|
||||||
- 'test/functional/repositories_mercurial_controller_test.rb'
|
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
|
||||||
|
- 'lib/redmine/scm/adapters/subversion_adapter.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Lint/UnifiedInteger:
|
Lint/UnifiedInteger:
|
||||||
@@ -492,6 +492,11 @@ Naming/MethodName:
|
|||||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||||
- 'test/helpers/application_helper_test.rb'
|
- 'test/helpers/application_helper_test.rb'
|
||||||
|
|
||||||
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
||||||
|
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
||||||
|
Naming/MethodParameterName:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: PreferredName.
|
# Configuration parameters: PreferredName.
|
||||||
Naming/RescuedExceptionsVariableName:
|
Naming/RescuedExceptionsVariableName:
|
||||||
@@ -500,11 +505,6 @@ Naming/RescuedExceptionsVariableName:
|
|||||||
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
- 'lib/redmine/scm/adapters/abstract_adapter.rb'
|
||||||
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
- 'lib/redmine/scm/adapters/filesystem_adapter.rb'
|
||||||
|
|
||||||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
|
||||||
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
|
||||||
Naming/UncommunicativeMethodParamName:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: snake_case, camelCase
|
# SupportedStyles: snake_case, camelCase
|
||||||
Naming/VariableName:
|
Naming/VariableName:
|
||||||
@@ -1275,8 +1275,8 @@ Style/NegatedWhile:
|
|||||||
- 'app/helpers/application_helper.rb'
|
- 'app/helpers/application_helper.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: Whitelist.
|
# Configuration parameters: AllowedMethods.
|
||||||
# Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
# AllowedMethods: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
|
||||||
Style/NestedParenthesizedCalls:
|
Style/NestedParenthesizedCalls:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/views/labelled_form_builder.rb'
|
- 'lib/redmine/views/labelled_form_builder.rb'
|
||||||
@@ -1474,8 +1474,8 @@ Style/RescueStandardError:
|
|||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
|
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
|
||||||
# Whitelist: present?, blank?, presence, try, try!
|
# AllowedMethods: present?, blank?, presence, try, try!
|
||||||
Style/SafeNavigation:
|
Style/SafeNavigation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
@@ -1575,8 +1575,8 @@ Style/TernaryParentheses:
|
|||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethod.
|
||||||
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
# AllowedMethod: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
|
||||||
Style/TrivialAccessors:
|
Style/TrivialAccessors:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/issue.rb'
|
- 'app/models/issue.rb'
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@@ -84,7 +84,7 @@ group :test do
|
|||||||
gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.29.0")
|
gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.29.0")
|
||||||
gem "selenium-webdriver"
|
gem "selenium-webdriver"
|
||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 0.76.0'
|
gem 'rubocop', '~> 0.77.0'
|
||||||
gem 'rubocop-performance', '~> 1.5.0'
|
gem 'rubocop-performance', '~> 1.5.0'
|
||||||
gem 'rubocop-rails', '~> 2.3.0'
|
gem 'rubocop-rails', '~> 2.3.0'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user