Browse Source

Update RuboCop to 1.12.0 (#32530).


git-svn-id: http://svn.redmine.org/redmine/trunk@20839 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Go MAEDA 3 years ago
parent
commit
63ef0c9eb7
2 changed files with 14 additions and 3 deletions
  1. 13
    2
      .rubocop_todo.yml
  2. 1
    1
      Gemfile

+ 13
- 2
.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 1.11.0.
# using RuboCop version 1.12.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
@@ -368,7 +368,7 @@ Lint/SendWithMixinArgument:
Lint/ShadowingOuterLocalVariable:
Enabled: false

# Configuration parameters: AllowComments.
# Configuration parameters: AllowComments, AllowNil.
Lint/SuppressedException:
Exclude:
- 'app/controllers/activities_controller.rb'
@@ -1150,6 +1150,7 @@ Style/DocumentDynamicEvalDefinition:
Exclude:
- 'app/helpers/attachments_helper.rb'

# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false

@@ -1540,6 +1541,11 @@ Style/RedundantAssignment:
- 'lib/redmine/wiki_formatting.rb'
- 'lib/redmine/wiki_formatting/markdown/formatter.rb'

# Cop supports --auto-correct.
Style/RedundantBegin:
Exclude:
- 'app/models/member.rb'

# Cop supports --auto-correct.
Style/RedundantCondition:
Exclude:
@@ -1719,6 +1725,11 @@ Style/StderrPuts:
- 'config/environment.rb'
- 'config/initializers/10-patches.rb'

# Cop supports --auto-correct.
Style/StringChars:
Exclude:
- 'app/models/user.rb'

# Cop supports --auto-correct.
Style/StringConcatenation:
Enabled: false

+ 1
- 1
Gemfile View File

@@ -93,7 +93,7 @@ group :test do
gem "selenium-webdriver"
gem 'webdrivers', '~> 4.4', require: false
# RuboCop
gem 'rubocop', '~> 1.11.0'
gem 'rubocop', '~> 1.12.0'
gem 'rubocop-performance', '~> 1.10.1'
gem 'rubocop-rails', '~> 2.9.0'
end

Loading…
Cancel
Save