]> source.dussan.org Git - redmine.git/commitdiff
Update RuboCop to 0.78 (#32530).
authorGo MAEDA <maeda@farend.jp>
Thu, 26 Dec 2019 06:33:32 +0000 (06:33 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 26 Dec 2019 06:33:32 +0000 (06:33 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19405 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
Gemfile

index 9667387e6d25f24c65486f3c4c250889efc4001a..29ac885a1a357c1767a72b69c5acaa03ffb09594 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.77.0.
+# using RuboCop version 0.78.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
@@ -252,7 +252,8 @@ Layout/SpaceAroundEqualsInParameterDefault:
   Enabled: false
 
 # Cop supports --auto-correct.
-# Configuration parameters: AllowForAlignment.
+# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
+# SupportedStylesForExponentOperator: space, no_space
 Layout/SpaceAroundOperators:
   Enabled: false
 
@@ -386,6 +387,11 @@ Lint/Loop:
   Exclude:
     - 'lib/redmine/helpers/gantt.rb'
 
+# Cop supports --auto-correct.
+Lint/NonDeterministicRequireOrder:
+  Exclude:
+    - 'lib/redmine/core_ext.rb'
+
 Lint/ParenthesesAsGroupedExpression:
   Exclude:
     - 'test/functional/my_controller_test.rb'
@@ -1605,8 +1611,8 @@ Style/TernaryParentheses:
   Enabled: false
 
 # Cop supports --auto-correct.
-# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethod.
-# AllowedMethod: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
+# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
+# AllowedMethods: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
 Style/TrivialAccessors:
   Exclude:
     - 'app/models/issue.rb'
@@ -1651,3 +1657,9 @@ Style/ZeroLengthPredicate:
     - 'test/object_helpers.rb'
     - 'test/unit/activity_test.rb'
     - 'test/unit/custom_field_test.rb'
+
+# Cop supports --auto-correct.
+# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
+# URISchemes: http, https
+Layout/LineLength:
+  Max: 461
diff --git a/Gemfile b/Gemfile
index a84968474d7cd5c8357ba81e36539069ad15188d..354adc7471650287b973f6c1f9c27efac565f175 100644 (file)
--- a/Gemfile
+++ b/Gemfile
@@ -84,7 +84,7 @@ group :test do
   gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.29.0")
   gem "selenium-webdriver"
   # RuboCop
-  gem 'rubocop', '~> 0.77.0'
+  gem 'rubocop', '~> 0.78.0'
   gem 'rubocop-performance', '~> 1.5.0'
   gem 'rubocop-rails', '~> 2.4.0'
 end