From c4ff55ac9bd8513f85d8a600274e6cfb96cd436a Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 5 Apr 2020 05:45:22 +0000 Subject: Update RuboCop to 0.81 (#32530). git-svn-id: http://svn.redmine.org/redmine/trunk@19645 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 6 ++++++ .rubocop_todo.yml | 29 ++--------------------------- Gemfile | 2 +- 3 files changed, 9 insertions(+), 28 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 4b63e0b5f..6b890cd50 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -48,6 +48,12 @@ Layout/SpaceInsideBlockBraces: Layout/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space +Lint/RaiseException: + Enabled: true + +Lint/StructNewOverride: + Enabled: true + Lint/SuppressedException: AllowComments: true diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 3740abed9..6d91c6177 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 0.80.1. +# using RuboCop version 0.81.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 @@ -437,7 +437,7 @@ Lint/UnusedBlockArgument: Enabled: false # Cop supports --auto-correct. -# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. +# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods. Lint/UnusedMethodArgument: Enabled: false @@ -901,31 +901,6 @@ Security/YAMLLoad: - 'app/models/setting.rb' - 'lib/redmine/configuration.rb' -# Configuration parameters: EnforcedStyle. -# SupportedStyles: inline, group -Style/AccessModifierDeclarations: - Exclude: - - 'app/controllers/application_controller.rb' - - 'app/controllers/repositories_controller.rb' - - 'app/models/group_builtin.rb' - - 'app/models/issue.rb' - - 'app/models/query.rb' - - 'app/models/repository.rb' - - 'app/models/repository/bazaar.rb' - - 'app/models/repository/cvs.rb' - - 'app/models/repository/git.rb' - - 'app/models/repository/mercurial.rb' - - 'app/models/user.rb' - - 'app/models/user_preference.rb' - - 'app/models/wiki_page.rb' - - 'lib/redmine/field_format.rb' - - 'lib/redmine/plugin.rb' - - 'lib/redmine/scm/adapters/bazaar_adapter.rb' - - 'lib/redmine/scm/adapters/cvs_adapter.rb' - - 'lib/redmine/scm/adapters/mercurial_adapter.rb' - - 'test/functional/issues_controller_test.rb' - - 'test/unit/lib/redmine/helpers/gantt_test.rb' - # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle. # SupportedStyles: prefer_alias, prefer_alias_method diff --git a/Gemfile b/Gemfile index 809e71d8c..478e40ab4 100644 --- a/Gemfile +++ b/Gemfile @@ -88,7 +88,7 @@ group :test do gem 'capybara', (RUBY_VERSION < '2.4' ? '~> 3.15.1' : '~> 3.31.0') gem "selenium-webdriver" # RuboCop - gem 'rubocop', '~> 0.80.0' + gem 'rubocop', '~> 0.81.0' gem 'rubocop-performance', '~> 1.5.0' gem 'rubocop-rails', '~> 2.5.0' end -- cgit v1.2.3