mirror of
https://github.com/redmine/redmine.git
synced 2025-12-15 21:10:27 +01:00
Update RuboCop to 0.80 (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@19522 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -96,10 +96,19 @@ Style/FrozenStringLiteralComment:
|
|||||||
- 'config.ru'
|
- 'config.ru'
|
||||||
- 'config/additional_environment.rb'
|
- 'config/additional_environment.rb'
|
||||||
|
|
||||||
|
Style/HashEachMethods:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Style/HashSyntax:
|
Style/HashSyntax:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
EnforcedStyle: no_mixed_keys
|
EnforcedStyle: no_mixed_keys
|
||||||
|
|
||||||
|
Style/HashTransformKeys:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
|
Style/HashTransformValues:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Style/IdenticalConditionalBranches:
|
Style/IdenticalConditionalBranches:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'config/initializers/10-patches.rb'
|
- 'config/initializers/10-patches.rb'
|
||||||
|
|||||||
@@ -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.79.0.
|
# using RuboCop version 0.80.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
|
||||||
@@ -493,7 +493,7 @@ Naming/MethodName:
|
|||||||
- 'test/helpers/application_helper_test.rb'
|
- 'test/helpers/application_helper_test.rb'
|
||||||
|
|
||||||
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
|
||||||
# AllowedNames: io, id, to, by, on, in, at, ip, db, os
|
# AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
|
||||||
Naming/MethodParameterName:
|
Naming/MethodParameterName:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
@@ -984,7 +984,7 @@ Style/BlockComments:
|
|||||||
- 'lib/diff.rb'
|
- 'lib/diff.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
|
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners, BracesRequiredMethods.
|
||||||
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
|
||||||
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
||||||
# FunctionalMethods: let, let!, subject, watch
|
# FunctionalMethods: let, let!, subject, watch
|
||||||
@@ -992,12 +992,6 @@ Style/BlockComments:
|
|||||||
Style/BlockDelimiters:
|
Style/BlockDelimiters:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
|
||||||
# SupportedStyles: braces, no_braces, context_dependent
|
|
||||||
Style/BracesAroundHashParameters:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
||||||
# SupportedStyles: nested, compact
|
# SupportedStyles: nested, compact
|
||||||
@@ -1149,6 +1143,16 @@ Style/GlobalVars:
|
|||||||
Style/GuardClause:
|
Style/GuardClause:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Style/HashEachMethods:
|
||||||
|
Exclude:
|
||||||
|
- 'app/controllers/application_controller.rb'
|
||||||
|
- 'app/controllers/groups_controller.rb'
|
||||||
|
- 'app/models/mailer.rb'
|
||||||
|
- 'app/models/role.rb'
|
||||||
|
- 'test/functional/issues_custom_fields_visibility_test.rb'
|
||||||
|
- 'test/unit/auth_source_ldap_test.rb'
|
||||||
|
|
||||||
# Configuration parameters: AllowIfModifier.
|
# Configuration parameters: AllowIfModifier.
|
||||||
Style/IfInsideElse:
|
Style/IfInsideElse:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@@ -87,7 +87,7 @@ group :test do
|
|||||||
gem 'capybara', (RUBY_VERSION < '2.4' ? '~> 3.15.1' : '~> 3.31.0')
|
gem 'capybara', (RUBY_VERSION < '2.4' ? '~> 3.15.1' : '~> 3.31.0')
|
||||||
gem "selenium-webdriver"
|
gem "selenium-webdriver"
|
||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 0.79.0'
|
gem 'rubocop', '~> 0.80.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