From 251a4bfd676c0166f773e38ed0914327e7ece63e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 24 Mar 2023 09:47:19 +0000 Subject: [PATCH] Update RuboCop to 1.48 (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@22149 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 5 +++++ .rubocop_todo.yml | 14 ++------------ Gemfile | 2 +- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index ef8cac469..3711563e2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -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 diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 722380e34..67ece8457 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/Gemfile b/Gemfile index b28e57f34..7a2d1e6dd 100644 --- a/Gemfile +++ b/Gemfile @@ -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