Browse Source

Update RuboCop to 0.81 (#32530).


git-svn-id: http://svn.redmine.org/redmine/trunk@19645 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Go MAEDA 4 years ago
parent
commit
c4ff55ac9b
3 changed files with 9 additions and 28 deletions
  1. 6
    0
      .rubocop.yml
  2. 2
    27
      .rubocop_todo.yml
  3. 1
    1
      Gemfile

+ 6
- 0
.rubocop.yml View File

@@ -48,6 +48,12 @@ Layout/SpaceInsideBlockBraces:
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Lint/RaiseException:
Enabled: true

Lint/StructNewOverride:
Enabled: true

Lint/SuppressedException:
AllowComments: true


+ 2
- 27
.rubocop_todo.yml 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 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

+ 1
- 1
Gemfile View File

@@ -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

Loading…
Cancel
Save