]> source.dussan.org Git - redmine.git/commitdiff
Update RuboCop to 0.74.0 (#31509).
authorGo MAEDA <maeda@farend.jp>
Thu, 15 Aug 2019 00:53:19 +0000 (00:53 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 15 Aug 2019 00:53:19 +0000 (00:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18371 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
Gemfile

index 98b585ddf6e9d11b9480537ce55a0cbf965f439e..272fa92d790b18f708f5886c12aa1e078df69dba 100644 (file)
@@ -1,6 +1,6 @@
 # This configuration was generated by
 # `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
-# using RuboCop version 0.72.0.
+# using RuboCop version 0.74.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
@@ -313,6 +313,7 @@ Layout/IndentationWidth:
   Enabled: false
 
 # Cop supports --auto-correct.
+# Configuration parameters: AllowDoxygenCommentStyle.
 Layout/LeadingCommentSpace:
   Exclude:
     - 'app/controllers/repositories_controller.rb'
@@ -602,6 +603,11 @@ Lint/InterpolationCheck:
   Exclude:
     - 'app/models/user.rb'
 
+# Cop supports --auto-correct.
+Lint/LiteralInInterpolation:
+  Exclude:
+    - 'test/unit/mail_handler_test.rb'
+
 Lint/Loop:
   Exclude:
     - 'lib/redmine/helpers/gantt.rb'
@@ -670,6 +676,7 @@ Lint/UselessAccessModifier:
     - 'app/models/changeset.rb'
     - 'app/models/watcher.rb'
     - 'lib/redmine/themes.rb'
+    - 'test/functional/repositories_git_controller_test.rb'
 
 Lint/UselessAssignment:
   Enabled: false
@@ -1499,20 +1506,9 @@ Style/NumericLiteralPrefix:
     - 'test/unit/user_test.rb'
 
 # Cop supports --auto-correct.
-# Configuration parameters: MinDigits, Strict.
+# Configuration parameters: Strict.
 Style/NumericLiterals:
-  Exclude:
-    - 'db/schema.rb'
-    - 'lib/redmine/database.rb'
-    - 'test/functional/issues_controller_test.rb'
-    - 'test/functional/messages_controller_test.rb'
-    - 'test/helpers/application_helper_test.rb'
-    - 'test/unit/lib/redmine/i18n_test.rb'
-    - 'test/unit/lib/redmine/plugin_test.rb'
-    - 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
-    - 'test/unit/mail_handler_test.rb'
-    - 'test/unit/search_test.rb'
-    - 'test/unit/time_entry_test.rb'
+  MinDigits: 9
 
 # Cop supports --auto-correct.
 # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
diff --git a/Gemfile b/Gemfile
index ec8d6e2455a19584b6a2efb0e3a141044477194e..d244bd2b98360f3ba9355cafe7435537df2a7128 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -84,8 +84,8 @@ group :test do
   gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.25.0")
   gem "selenium-webdriver"
   # RuboCop
-  gem 'rubocop', '~> 0.72.0'
-  gem 'rubocop-rails', '~> 2.1.0'
+  gem 'rubocop', '~> 0.74.0'
+  gem 'rubocop-rails', '~> 2.3.0'
 end
 
 local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")