]> source.dussan.org Git - redmine.git/commitdiff
Update RuboCop to 0.81 (#32530).
authorGo MAEDA <maeda@farend.jp>
Sun, 5 Apr 2020 05:45:22 +0000 (05:45 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 5 Apr 2020 05:45:22 +0000 (05:45 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19645 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop.yml
.rubocop_todo.yml
Gemfile

index 4b63e0b5fccbdea03278ad292f82d4ad3e527ca6..6b890cd5074408adcdc7f668982c8bd46be6efdc 100644 (file)
@@ -48,6 +48,12 @@ Layout/SpaceInsideBlockBraces:
 Layout/SpaceInsideHashLiteralBraces:
   EnforcedStyle: no_space
 
+Lint/RaiseException:
+  Enabled: true
+
+Lint/StructNewOverride:
+  Enabled: true
+
 Lint/SuppressedException:
   AllowComments: true
 
index 3740abed960e8344ea2055a817f1e65d81aa4bd0..6d91c6177ab70794e0f4e8d38c900ac899c72a97 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 0.80.1.
+# using RuboCop version 0.81.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
@@ -437,7 +437,7 @@ Lint/UnusedBlockArgument:
   Enabled: false
 
 # Cop supports --auto-correct.
-# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
+# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
 Lint/UnusedMethodArgument:
   Enabled: false
 
@@ -901,31 +901,6 @@ Security/YAMLLoad:
     - 'app/models/setting.rb'
     - 'lib/redmine/configuration.rb'
 
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: inline, group
-Style/AccessModifierDeclarations:
-  Exclude:
-    - 'app/controllers/application_controller.rb'
-    - 'app/controllers/repositories_controller.rb'
-    - 'app/models/group_builtin.rb'
-    - 'app/models/issue.rb'
-    - 'app/models/query.rb'
-    - 'app/models/repository.rb'
-    - 'app/models/repository/bazaar.rb'
-    - 'app/models/repository/cvs.rb'
-    - 'app/models/repository/git.rb'
-    - 'app/models/repository/mercurial.rb'
-    - 'app/models/user.rb'
-    - 'app/models/user_preference.rb'
-    - 'app/models/wiki_page.rb'
-    - 'lib/redmine/field_format.rb'
-    - 'lib/redmine/plugin.rb'
-    - 'lib/redmine/scm/adapters/bazaar_adapter.rb'
-    - 'lib/redmine/scm/adapters/cvs_adapter.rb'
-    - 'lib/redmine/scm/adapters/mercurial_adapter.rb'
-    - 'test/functional/issues_controller_test.rb'
-    - 'test/unit/lib/redmine/helpers/gantt_test.rb'
-
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
 # SupportedStyles: prefer_alias, prefer_alias_method
diff --git a/Gemfile b/Gemfile
index 809e71d8cfe66ae6aa04588e37b8c4da6c96786a..478e40ab42c1b9f68706740c52839aa5a224a962 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -88,7 +88,7 @@ group :test do
   gem 'capybara', (RUBY_VERSION < '2.4' ? '~> 3.15.1' : '~> 3.31.0')
   gem "selenium-webdriver"
   # RuboCop
-  gem 'rubocop', '~> 0.80.0'
+  gem 'rubocop', '~> 0.81.0'
   gem 'rubocop-performance', '~> 1.5.0'
   gem 'rubocop-rails', '~> 2.5.0'
 end