1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 19:47:14 +00:00

Update RuboCop to 1.51 (#36919).

git-svn-id: https://svn.redmine.org/redmine/trunk@22247 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2023-05-15 07:48:24 +00:00
parent fb108e5ec4
commit 491983a23e
2 changed files with 7 additions and 2 deletions

View 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.50.2.
# using RuboCop version 1.51.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
@ -264,6 +264,7 @@ Layout/SpaceInsideStringInterpolation:
- 'lib/redmine/core_ext/string/inflections.rb'
- 'test/integration/admin_test.rb'
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowedMethods, AllowedPatterns.
Lint/AmbiguousBlockAssociation:
Enabled: false
@ -381,9 +382,11 @@ Lint/UnusedBlockArgument:
Lint/UnusedMethodArgument:
Enabled: false
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/UselessAssignment:
Enabled: false
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:
Exclude:
@ -409,6 +412,7 @@ Naming/FileName:
- 'config/initializers/20-mime_types.rb'
- 'config/initializers/30-redmine.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
@ -994,6 +998,7 @@ Style/ColonMethodCall:
- 'test/unit/default_data_test.rb'
- 'test/unit/lib/redmine/export/pdf_test.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
Style/CombinableLoops:
Exclude:
- 'app/models/wiki_annotate.rb'

View File

@ -103,7 +103,7 @@ group :test do
gem "selenium-webdriver", "~> 3.142.7"
gem 'webdrivers', '4.6.1', require: false
# RuboCop
gem 'rubocop', '~> 1.50.0', require: false
gem 'rubocop', '~> 1.51.0', require: false
gem 'rubocop-performance', '~> 1.17.1', require: false
gem 'rubocop-rails', '~> 2.19.1', require: false
end