mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 21:40:28 +01:00
Update RuboCop to 0.78 (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@19405 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# This configuration was generated by
|
# This configuration was generated by
|
||||||
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
|
# `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
|
# The point is for the user to remove these configuration records
|
||||||
# one by one as the offenses are removed from the code base.
|
# one by one as the offenses are removed from the code base.
|
||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
@@ -252,7 +252,8 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowForAlignment.
|
# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
|
||||||
|
# SupportedStylesForExponentOperator: space, no_space
|
||||||
Layout/SpaceAroundOperators:
|
Layout/SpaceAroundOperators:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
@@ -386,6 +387,11 @@ Lint/Loop:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/helpers/gantt.rb'
|
- 'lib/redmine/helpers/gantt.rb'
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Lint/NonDeterministicRequireOrder:
|
||||||
|
Exclude:
|
||||||
|
- 'lib/redmine/core_ext.rb'
|
||||||
|
|
||||||
Lint/ParenthesesAsGroupedExpression:
|
Lint/ParenthesesAsGroupedExpression:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'test/functional/my_controller_test.rb'
|
- 'test/functional/my_controller_test.rb'
|
||||||
@@ -1605,8 +1611,8 @@ Style/TernaryParentheses:
|
|||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethod.
|
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, AllowedMethods.
|
||||||
# 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
|
# 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:
|
Style/TrivialAccessors:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/issue.rb'
|
- 'app/models/issue.rb'
|
||||||
@@ -1651,3 +1657,9 @@ Style/ZeroLengthPredicate:
|
|||||||
- 'test/object_helpers.rb'
|
- 'test/object_helpers.rb'
|
||||||
- 'test/unit/activity_test.rb'
|
- 'test/unit/activity_test.rb'
|
||||||
- 'test/unit/custom_field_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
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@@ -84,7 +84,7 @@ group :test do
|
|||||||
gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.29.0")
|
gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.29.0")
|
||||||
gem "selenium-webdriver"
|
gem "selenium-webdriver"
|
||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 0.77.0'
|
gem 'rubocop', '~> 0.78.0'
|
||||||
gem 'rubocop-performance', '~> 1.5.0'
|
gem 'rubocop-performance', '~> 1.5.0'
|
||||||
gem 'rubocop-rails', '~> 2.4.0'
|
gem 'rubocop-rails', '~> 2.4.0'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user