From: Go MAEDA Date: Thu, 31 Oct 2019 09:18:39 +0000 (+0000) Subject: Update RuboCop to 0.76.0 (#31509). X-Git-Tag: 4.1.0~219 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5d2960d36f9a84ae8d3c2d98edb0c0b95ab0b7ab;p=redmine.git Update RuboCop to 0.76.0 (#31509). git-svn-id: http://svn.redmine.org/redmine/trunk@18884 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 220506289..5cff1020d 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.75.0. +# using RuboCop version 0.76.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 @@ -534,7 +534,7 @@ Naming/RescuedExceptionsVariableName: - 'lib/redmine/scm/adapters/filesystem_adapter.rb' # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames. -# AllowedNames: io, id, to, by, on, in, at, ip, db +# AllowedNames: io, id, to, by, on, in, at, ip, db, os Naming/UncommunicativeMethodParamName: Enabled: false @@ -592,8 +592,14 @@ Performance/StringReplacement: - 'app/helpers/settings_helper.rb' - 'lib/redmine/core_ext/string/conversions.rb' - 'lib/redmine/wiki_formatting/textile/redcloth3.rb' + - 'test/functional/repositories_cvs_controller_test.rb' + - 'test/functional/repositories_git_controller_test.rb' - 'test/helpers/application_helper_test.rb' + - 'test/integration/repositories_git_test.rb' + - 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb' - 'test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb' + - 'test/unit/repository_cvs_test.rb' + - 'test/unit/repository_git_test.rb' # Configuration parameters: Include. # Include: app/models/**/*.rb @@ -1403,6 +1409,13 @@ Style/RaiseArgs: - 'lib/redmine/scm/adapters/filesystem_adapter.rb' - 'lib/redmine/sort_criteria.rb' +# Cop supports --auto-correct. +Style/RedundantCondition: + Exclude: + - 'app/controllers/messages_controller.rb' + - 'app/controllers/previews_controller.rb' + - 'app/models/issue.rb' + # Cop supports --auto-correct. Style/RedundantConditional: Exclude: @@ -1411,6 +1424,21 @@ Style/RedundantConditional: - 'app/models/enumeration.rb' - 'lib/redmine/field_format.rb' +# Cop supports --auto-correct. +Style/RedundantInterpolation: + Exclude: + - 'app/helpers/my_helper.rb' + - 'app/helpers/queries_helper.rb' + - 'app/models/query.rb' + - 'app/views/common/feed.atom.builder' + - 'app/views/journals/index.builder' + - 'lib/redmine/helpers/time_report.rb' + - 'lib/redmine/scm/adapters/subversion_adapter.rb' + - 'lib/redmine/wiki_formatting.rb' + - 'test/functional/versions_controller_test.rb' + - 'test/functional/watchers_controller_test.rb' + - 'test/unit/repository_mercurial_test.rb' + # Cop supports --auto-correct. Style/RedundantParentheses: Exclude: @@ -1442,6 +1470,14 @@ Style/RedundantReturn: Style/RedundantSelf: Enabled: false +# Cop supports --auto-correct. +Style/RedundantSort: + Exclude: + - 'app/models/import.rb' + - 'lib/redmine/scm/adapters/abstract_adapter.rb' + - 'test/functional/issues_controller_test.rb' + - 'test/unit/member_test.rb' + # Cop supports --auto-correct. # Configuration parameters: EnforcedStyle, AllowInnerSlashes. # SupportedStyles: slashes, percent_r, mixed @@ -1603,36 +1639,6 @@ Style/UnlessElse: - 'lib/redmine/scm/adapters/abstract_adapter.rb' - 'lib/redmine/unified_diff.rb' -# Cop supports --auto-correct. -Style/UnneededCondition: - Exclude: - - 'app/controllers/messages_controller.rb' - - 'app/controllers/previews_controller.rb' - - 'app/models/issue.rb' - -# Cop supports --auto-correct. -Style/UnneededInterpolation: - Exclude: - - 'app/helpers/my_helper.rb' - - 'app/helpers/queries_helper.rb' - - 'app/models/query.rb' - - 'app/views/common/feed.atom.builder' - - 'app/views/journals/index.builder' - - 'lib/redmine/helpers/time_report.rb' - - 'lib/redmine/scm/adapters/subversion_adapter.rb' - - 'lib/redmine/wiki_formatting.rb' - - 'test/functional/versions_controller_test.rb' - - 'test/functional/watchers_controller_test.rb' - - 'test/unit/repository_mercurial_test.rb' - -# Cop supports --auto-correct. -Style/UnneededSort: - Exclude: - - 'app/models/import.rb' - - 'lib/redmine/scm/adapters/abstract_adapter.rb' - - 'test/functional/issues_controller_test.rb' - - 'test/unit/member_test.rb' - # Cop supports --auto-correct. Style/VariableInterpolation: Exclude: diff --git a/Gemfile b/Gemfile index d964de977..587bdb101 100644 --- a/Gemfile +++ b/Gemfile @@ -84,7 +84,7 @@ group :test do gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.25.0") gem "selenium-webdriver" # RuboCop - gem 'rubocop', '~> 0.75.0' + gem 'rubocop', '~> 0.76.0' gem 'rubocop-performance', '~> 1.5.0' gem 'rubocop-rails', '~> 2.3.0' end