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

Update RuboCop to 1.48 (#36919).

git-svn-id: https://svn.redmine.org/redmine/trunk@22149 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2023-03-24 09:47:19 +00:00
parent 064d58e6e3
commit 251a4bfd67
3 changed files with 8 additions and 13 deletions

View File

@ -85,6 +85,11 @@ Layout/SpaceInsideBlockBraces:
Layout/SpaceInsideHashLiteralBraces:
Enabled: false
Lint/MissingSuper:
Enabled: true
Exclude:
- 'lib/redmine/views/builders/structure.rb'
Lint/RaiseException:
Enabled: true

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.47.0.
# using RuboCop version 1.48.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
@ -928,23 +928,13 @@ Style/BarePercentLiterals:
- 'test/integration/api_test/api_test.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: MinBranchesCount.
Style/CaseLikeIf:
Exclude:
- 'app/controllers/wiki_controller.rb'
- 'app/helpers/members_helper.rb'
- 'app/models/issue_query.rb'
- 'app/models/journal.rb'
- 'app/models/repository/cvs.rb'
- 'app/models/setting.rb'
- 'app/models/time_entry.rb'
- 'app/models/user.rb'
- 'app/models/workflow_transition.rb'
- 'lib/redmine/access_control.rb'
- 'lib/redmine/diff_table.rb'
- 'lib/redmine/export/pdf/issues_pdf_helper.rb'
- 'lib/redmine/field_format.rb'
- 'lib/redmine/i18n.rb'
- 'lib/redmine/plugin.rb'
- 'lib/redmine/scm/adapters/bazaar_adapter.rb'
- 'lib/redmine/scm/adapters/cvs_adapter.rb'
- 'lib/redmine/scm/adapters/git_adapter.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.47.0', require: false
gem 'rubocop', '~> 1.48.1', require: false
gem 'rubocop-performance', '~> 1.16.0', require: false
gem 'rubocop-rails', '~> 2.17.2', require: false
end