]> source.dussan.org Git - redmine.git/commitdiff
Update RuboCop to 1.9.1 (#32530).
authorGo MAEDA <maeda@farend.jp>
Sun, 7 Feb 2021 06:01:47 +0000 (06:01 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 7 Feb 2021 06:01:47 +0000 (06:01 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20739 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
Gemfile

index 6d6d02f5b31e61419c3f8017a619ca12963ba2b8..654fa16b6ca9924dbb7f134578a5069ca6cafbee 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.8.1.
+# using RuboCop version 1.9.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
@@ -1284,6 +1284,17 @@ Style/IfUnlessModifierOfIfUnless:
   Exclude:
     - 'app/models/attachment.rb'
 
+# Cop supports --auto-correct.
+# Configuration parameters: AllowedMethods.
+# AllowedMethods: nonzero?
+Style/IfWithBooleanLiteralBranches:
+  Exclude:
+    - 'app/controllers/workflows_controller.rb'
+    - 'app/helpers/application_helper.rb'
+    - 'app/models/enumeration.rb'
+    - 'app/models/query.rb'
+    - 'lib/redmine/field_format.rb'
+
 # Cop supports --auto-correct.
 # Configuration parameters: InverseMethods, InverseBlocks.
 Style/InverseMethods:
diff --git a/Gemfile b/Gemfile
index a254636aa787c5a392d2554639c1aa0bf727ab3c..8d0c19d688d81ed06ea68aefb3d7b15c474fdae1 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -92,7 +92,7 @@ group :test do
   gem 'capybara', '~> 3.31.0'
   gem "selenium-webdriver"
   # RuboCop
-  gem 'rubocop', '~> 1.8.1'
+  gem 'rubocop', '~> 1.9.1'
   gem 'rubocop-performance', '~> 1.9.0'
   gem 'rubocop-rails', '~> 2.9.0'
 end