]> source.dussan.org Git - redmine.git/commitdiff
Update RuboCop Rails to 2.14 (#35207).
authorGo MAEDA <maeda@farend.jp>
Sun, 20 Mar 2022 07:05:56 +0000 (07:05 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 20 Mar 2022 07:05:56 +0000 (07:05 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@21473 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
Gemfile

index 3b18bab40ea367c6be3e19bbb71443d7cf876672..12e2fe5f3f0682b618aad0a230dfc85a2e5c531c 100644 (file)
@@ -670,6 +670,10 @@ Rails/Delegate:
     - 'app/models/wiki_content_version.rb'
     - 'lib/redmine/menu_manager.rb'
 
+Rails/DuplicateScope:
+  Exclude:
+    - 'app/models/enumeration.rb'
+
 # This cop supports unsafe auto-correction (--auto-correct-all).
 # Configuration parameters: Whitelist, AllowedMethods, AllowedReceivers.
 # Whitelist: find_by_sql
@@ -775,6 +779,10 @@ Rails/I18nLocaleAssignment:
     - 'test/unit/query_test.rb'
     - 'test/unit/role_test.rb'
 
+Rails/I18nLocaleTexts:
+  Exclude:
+    - 'app/models/mailer.rb'
+
 # Configuration parameters: IgnoreScopes, Include.
 # Include: app/models/**/*.rb
 Rails/InverseOf:
diff --git a/Gemfile b/Gemfile
index 1ca863649d15ba0b31ea1189fdfed5d1baf92bc4..240118039e8a2b6dacfd159f3d71bbb16076f3b4 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -102,7 +102,7 @@ group :test do
   # RuboCop
   gem 'rubocop', '~> 1.26.0'
   gem 'rubocop-performance', '~> 1.13.0'
-  gem 'rubocop-rails', '~> 2.13.0'
+  gem 'rubocop-rails', '~> 2.14.0'
 end
 
 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")