From ca89202a2eee523a556b918b83e92bf7a4a113f9 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 5 Aug 2022 01:33:14 +0000 Subject: [PATCH] Update RuboCop to 1.33 (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@21759 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 16 ++++++++-------- Gemfile | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 1ec05bbac..219922b4f 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.32.0. +# using RuboCop version 1.33.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 @@ -266,7 +266,7 @@ Layout/SpaceInsideStringInterpolation: - 'lib/redmine/core_ext/string/inflections.rb' - 'test/integration/admin_test.rb' -# Configuration parameters: IgnoredMethods. +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Lint/AmbiguousBlockAssociation: Enabled: false @@ -1090,8 +1090,8 @@ Style/ClassAndModuleChildren: Enabled: false # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: IgnoredMethods. -# IgnoredMethods: ==, equal?, eql? +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. +# AllowedMethods: ==, equal?, eql? Style/ClassEqualityComparison: Exclude: - 'app/models/principal.rb' @@ -1348,7 +1348,7 @@ Style/LineEndConcatenation: Enabled: false # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: IgnoredMethods. +# Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods. Style/MethodCallWithoutArgsParentheses: Exclude: - 'lib/redmine/scm/adapters/cvs_adapter.rb' @@ -1460,7 +1460,7 @@ Style/NumericLiterals: MinDigits: 9 # This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: EnforcedStyle, IgnoredMethods. +# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns, IgnoredMethods. # SupportedStyles: predicate, comparison Style/NumericPredicate: Enabled: false @@ -1795,8 +1795,8 @@ Style/SymbolArray: EnforcedStyle: brackets # This cop supports unsafe autocorrection (--autocorrect-all). -# Configuration parameters: AllowMethodsWithArguments, IgnoredMethods, AllowComments. -# IgnoredMethods: respond_to, define_method +# Configuration parameters: AllowMethodsWithArguments, AllowedMethods, AllowedPatterns, IgnoredMethods, AllowComments. +# AllowedMethods: respond_to, define_method Style/SymbolProc: Enabled: false diff --git a/Gemfile b/Gemfile index 93d03f0d9..6c1e99514 100644 --- a/Gemfile +++ b/Gemfile @@ -100,7 +100,7 @@ group :test do gem "selenium-webdriver", "~> 3.142.7" gem 'webdrivers', '4.6.1', require: false # RuboCop - gem 'rubocop', '~> 1.32.0' + gem 'rubocop', '~> 1.33.0' gem 'rubocop-performance', '~> 1.14.2' gem 'rubocop-rails', '~> 2.15.0' end