Browse Source

Update RuboCop to 1.45 (#36919).


git-svn-id: https://svn.redmine.org/redmine/trunk@22108 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.1.0
Go MAEDA 1 year ago
parent
commit
7bdc0b5934
2 changed files with 11 additions and 11 deletions
  1. 10
    10
      .rubocop_todo.yml
  2. 1
    1
      Gemfile

+ 10
- 10
.rubocop_todo.yml View File

@@ -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 1.44.1.
# using RuboCop version 1.45.1.
# 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
@@ -140,7 +140,7 @@ Layout/HashAlignment:
Enabled: false

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: Width, AllowedPatterns, IgnoredPatterns.
# Configuration parameters: Width, AllowedPatterns.
Layout/IndentationWidth:
Exclude:
- 'db/migrate/20110902000000_create_changeset_parents.rb'
@@ -266,7 +266,7 @@ Layout/SpaceInsideStringInterpolation:
- 'lib/redmine/core_ext/string/inflections.rb'
- 'test/integration/admin_test.rb'

# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: AllowedMethods, AllowedPatterns.
Lint/AmbiguousBlockAssociation:
Enabled: false

@@ -286,7 +286,7 @@ Lint/AmbiguousOperatorPrecedence:
Lint/AmbiguousRegexpLiteral:
Enabled: false

# This cop supports safe autocorrection (--autocorrect).
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Enabled: false
@@ -439,7 +439,7 @@ Naming/MemoizedInstanceVariableName:
- 'lib/redmine/helpers/calendar.rb'
- 'lib/redmine/search.rb'

# Configuration parameters: EnforcedStyle, AllowedPatterns, IgnoredPatterns.
# Configuration parameters: EnforcedStyle, AllowedPatterns.
# SupportedStyles: snake_case, camelCase
Naming/MethodName:
Exclude:
@@ -972,7 +972,7 @@ Style/ClassAndModuleChildren:
Enabled: false

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: AllowedMethods, AllowedPatterns.
# AllowedMethods: ==, equal?, eql?
Style/ClassEqualityComparison:
Exclude:
@@ -1240,7 +1240,7 @@ Style/LineEndConcatenation:
Enabled: false

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: AllowedMethods, AllowedPatterns.
Style/MethodCallWithoutArgsParentheses:
Exclude:
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
@@ -1352,7 +1352,7 @@ Style/NumericLiterals:
MinDigits: 9

# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods.
# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
# SupportedStyles: predicate, comparison
Style/NumericPredicate:
Enabled: false
@@ -1645,7 +1645,7 @@ Style/SymbolArray:
EnforcedStyle: brackets

# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments.
# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, AllowComments.
# AllowedMethods: define_method, mail, respond_to
Style/SymbolProc:
Enabled: false
@@ -1699,7 +1699,7 @@ Style/ZeroLengthPredicate:
- 'test/unit/custom_field_test.rb'

# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns, IgnoredPatterns.
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns.
# URISchemes: http, https
Layout/LineLength:
Max: 194

+ 1
- 1
Gemfile View File

@@ -103,7 +103,7 @@ group :test do
gem "selenium-webdriver", "~> 3.142.7"
gem 'webdrivers', '4.6.1', require: false
# RuboCop
gem 'rubocop', '~> 1.44.0'
gem 'rubocop', '~> 1.45.1'
gem 'rubocop-performance', '~> 1.16.0'
gem 'rubocop-rails', '~> 2.17.2'
end

Loading…
Cancel
Save