From 7bdc0b593479ffc418e4dce70f3814339df1af0f Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 15 Feb 2023 00:13:25 +0000 Subject: [PATCH] Update RuboCop to 1.45 (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22108 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 20 ++++++++++---------- Gemfile | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 06310090e..af06e64f2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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 diff --git a/Gemfile b/Gemfile index daf37473e..c1a358a1c 100644 --- a/Gemfile +++ b/Gemfile @@ -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 -- 2.39.5