]> source.dussan.org Git - redmine.git/commitdiff
Update RuboCop to 1.53 (#36919).
authorGo MAEDA <maeda@farend.jp>
Thu, 29 Jun 2023 03:28:57 +0000 (03:28 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 29 Jun 2023 03:28:57 +0000 (03:28 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22265 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
Gemfile

index 415e4b9c90b192ca22b7e8b4c329ddcc459fd795..2370e2a4093a4ee4a4fc7ab9bdbdc206c14a5bf9 100644 (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.52.0.
+# using RuboCop version 1.53.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
@@ -537,10 +537,11 @@ Rails/ContentTag:
     - 'lib/redmine/wiki_formatting/markdown/formatter.rb'
 
 # Configuration parameters: Include.
-# Include: db/migrate/*.rb
+# Include: db/**/*.rb
 Rails/CreateTableWithTimestamps:
   Enabled: false
 
+# This cop supports unsafe autocorrection (--autocorrect-all).
 # Configuration parameters: EnforcedStyle, AllowToTime.
 # SupportedStyles: strict, flexible
 Rails/Date:
@@ -1479,13 +1480,27 @@ Style/RedundantParentheses:
     - 'test/unit/version_test.rb'
 
 # This cop supports safe autocorrection (--autocorrect).
-Style/RedundantRegexpCharacterClass:
+Style/RedundantRegexpEscape:
   Exclude:
+    - 'app/controllers/settings_controller.rb'
     - 'app/helpers/application_helper.rb'
-
-# This cop supports safe autocorrection (--autocorrect).
-Style/RedundantRegexpEscape:
-  Enabled: false
+    - 'app/helpers/issues_helper.rb'
+    - 'app/models/mail_handler.rb'
+    - 'app/models/mailer.rb'
+    - 'app/models/repository/subversion.rb'
+    - 'app/models/wiki.rb'
+    - 'lib/redmine/acts/mentionable.rb'
+    - 'lib/redmine/diff_table.rb'
+    - 'lib/redmine/helpers/url.rb'
+    - 'lib/redmine/i18n.rb'
+    - 'lib/redmine/plugin.rb'
+    - 'lib/redmine/scm/adapters/abstract_adapter.rb'
+    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
+    - 'lib/redmine/wiki_formatting/links_helper.rb'
+    - 'lib/redmine/wiki_formatting/macros.rb'
+    - 'lib/redmine/wiki_formatting/section_helper.rb'
+    - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
+    - 'test/helpers/application_helper_test.rb'
 
 # This cop supports safe autocorrection (--autocorrect).
 # Configuration parameters: AllowMultipleReturnValues.
diff --git a/Gemfile b/Gemfile
index a3c74d315dbe3a6402754f32e9d33ecafea6c6a1..b4fbd939d258a87fbd280234ba26f0054ef32b45 100644 (file)
--- 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.52.0', require: false
+  gem 'rubocop', '~> 1.53.1', require: false
   gem 'rubocop-performance', '~> 1.18.0', require: false
   gem 'rubocop-rails', '~> 2.20.2', require: false
 end