From 491983a23e6ef5b0d2873cbc453effb1eedb1dba Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Mon, 15 May 2023 07:48:24 +0000 Subject: [PATCH] Update RuboCop to 1.51 (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22247 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 7 ++++++- Gemfile | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 319881b91..bf36d6717 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.50.2. +# using RuboCop version 1.51.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 @@ -264,6 +264,7 @@ Layout/SpaceInsideStringInterpolation: - 'lib/redmine/core_ext/string/inflections.rb' - 'test/integration/admin_test.rb' +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowedMethods, AllowedPatterns. Lint/AmbiguousBlockAssociation: Enabled: false @@ -381,9 +382,11 @@ Lint/UnusedBlockArgument: Lint/UnusedMethodArgument: Enabled: false +# This cop supports unsafe autocorrection (--autocorrect-all). Lint/UselessAssignment: Enabled: false +# This cop supports safe autocorrection (--autocorrect). # Configuration parameters: CheckForMethodsWithNoSideEffects. Lint/Void: Exclude: @@ -409,6 +412,7 @@ Naming/FileName: - 'config/initializers/20-mime_types.rb' - 'config/initializers/30-redmine.rb' +# This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyleForLeadingUnderscores. # SupportedStylesForLeadingUnderscores: disallowed, required, optional Naming/MemoizedInstanceVariableName: @@ -994,6 +998,7 @@ Style/ColonMethodCall: - 'test/unit/default_data_test.rb' - 'test/unit/lib/redmine/export/pdf_test.rb' +# This cop supports unsafe autocorrection (--autocorrect-all). Style/CombinableLoops: Exclude: - 'app/models/wiki_annotate.rb' diff --git a/Gemfile b/Gemfile index 705f15d5f..dc964a113 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.50.0', require: false + gem 'rubocop', '~> 1.51.0', require: false gem 'rubocop-performance', '~> 1.17.1', require: false gem 'rubocop-rails', '~> 2.19.1', require: false end