From: Go MAEDA Date: Wed, 20 Dec 2023 08:29:38 +0000 (+0000) Subject: Update RuboCop to 1.59 (#39887). X-Git-Tag: 6.0.0~565 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=21a48d79f4f116a59283803475a5799e83da6074;p=redmine.git Update RuboCop to 1.59 (#39887). git-svn-id: https://svn.redmine.org/redmine/trunk@22534 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 133af6081..558944223 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.57.2. +# using RuboCop version 1.59.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 @@ -215,8 +215,9 @@ Layout/SpaceAfterNot: - 'test/unit/user_test.rb' # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. +# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator, EnforcedStyleForRationalLiterals. # SupportedStylesForExponentOperator: space, no_space +# SupportedStylesForRationalLiterals: space, no_space Layout/SpaceAroundOperators: Enabled: false @@ -303,7 +304,6 @@ Lint/EmptyBlock: Lint/FloatComparison: Exclude: - - 'app/models/time_entry.rb' - 'test/system/timelog_test.rb' # This cop supports unsafe autocorrection (--autocorrect-all). @@ -339,11 +339,6 @@ Lint/ParenthesesAsGroupedExpression: - 'test/unit/attachment_test.rb' - 'test/unit/lib/redmine/export/pdf_test.rb' -# This cop supports safe autocorrection (--autocorrect). -Lint/RedundantCopDisableDirective: - Exclude: - - 'app/models/project.rb' - # This cop supports safe autocorrection (--autocorrect). Lint/RedundantStringCoercion: Exclude: diff --git a/Gemfile b/Gemfile index 908c32343..a86882fc8 100644 --- a/Gemfile +++ b/Gemfile @@ -111,7 +111,7 @@ group :test do gem "selenium-webdriver", ">= 4.11.0" end # RuboCop - gem 'rubocop', '~> 1.57.0', require: false + gem 'rubocop', '~> 1.59.0', require: false gem 'rubocop-performance', '~> 1.19.0', require: false gem 'rubocop-rails', '~> 2.22.1', require: false end