mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Update RuboCop to 0.81 (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@19645 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -48,6 +48,12 @@ Layout/SpaceInsideBlockBraces:
|
|||||||
Layout/SpaceInsideHashLiteralBraces:
|
Layout/SpaceInsideHashLiteralBraces:
|
||||||
EnforcedStyle: no_space
|
EnforcedStyle: no_space
|
||||||
|
|
||||||
|
Lint/RaiseException:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
|
Lint/StructNewOverride:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Lint/SuppressedException:
|
Lint/SuppressedException:
|
||||||
AllowComments: true
|
AllowComments: true
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# This configuration was generated by
|
# This configuration was generated by
|
||||||
# `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp`
|
# `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
|
# The point is for the user to remove these configuration records
|
||||||
# one by one as the offenses are removed from the code base.
|
# one by one as the offenses are removed from the code base.
|
||||||
# Note that changes in the inspected code, or installation of new
|
# Note that changes in the inspected code, or installation of new
|
||||||
@@ -437,7 +437,7 @@ Lint/UnusedBlockArgument:
|
|||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
|
||||||
Lint/UnusedMethodArgument:
|
Lint/UnusedMethodArgument:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
@@ -901,31 +901,6 @@ Security/YAMLLoad:
|
|||||||
- 'app/models/setting.rb'
|
- 'app/models/setting.rb'
|
||||||
- 'lib/redmine/configuration.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.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: prefer_alias, prefer_alias_method
|
# SupportedStyles: prefer_alias, prefer_alias_method
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@@ -88,7 +88,7 @@ group :test do
|
|||||||
gem 'capybara', (RUBY_VERSION < '2.4' ? '~> 3.15.1' : '~> 3.31.0')
|
gem 'capybara', (RUBY_VERSION < '2.4' ? '~> 3.15.1' : '~> 3.31.0')
|
||||||
gem "selenium-webdriver"
|
gem "selenium-webdriver"
|
||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 0.80.0'
|
gem 'rubocop', '~> 0.81.0'
|
||||||
gem 'rubocop-performance', '~> 1.5.0'
|
gem 'rubocop-performance', '~> 1.5.0'
|
||||||
gem 'rubocop-rails', '~> 2.5.0'
|
gem 'rubocop-rails', '~> 2.5.0'
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user