mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Update RuboCop to 0.74.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18371 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
f036c984e9
commit
76788318a7
@ -1,6 +1,6 @@
|
|||||||
# This configuration was generated by
|
# This configuration was generated by
|
||||||
# `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
|
# `rubocop --auto-gen-config --no-offense-counts --no-auto-gen-timestamp`
|
||||||
# using RuboCop version 0.72.0.
|
# using RuboCop version 0.74.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
|
||||||
@ -313,6 +313,7 @@ Layout/IndentationWidth:
|
|||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
|
# Configuration parameters: AllowDoxygenCommentStyle.
|
||||||
Layout/LeadingCommentSpace:
|
Layout/LeadingCommentSpace:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/controllers/repositories_controller.rb'
|
- 'app/controllers/repositories_controller.rb'
|
||||||
@ -602,6 +603,11 @@ Lint/InterpolationCheck:
|
|||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/user.rb'
|
- 'app/models/user.rb'
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Lint/LiteralInInterpolation:
|
||||||
|
Exclude:
|
||||||
|
- 'test/unit/mail_handler_test.rb'
|
||||||
|
|
||||||
Lint/Loop:
|
Lint/Loop:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'lib/redmine/helpers/gantt.rb'
|
- 'lib/redmine/helpers/gantt.rb'
|
||||||
@ -670,6 +676,7 @@ Lint/UselessAccessModifier:
|
|||||||
- 'app/models/changeset.rb'
|
- 'app/models/changeset.rb'
|
||||||
- 'app/models/watcher.rb'
|
- 'app/models/watcher.rb'
|
||||||
- 'lib/redmine/themes.rb'
|
- 'lib/redmine/themes.rb'
|
||||||
|
- 'test/functional/repositories_git_controller_test.rb'
|
||||||
|
|
||||||
Lint/UselessAssignment:
|
Lint/UselessAssignment:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
@ -1499,20 +1506,9 @@ Style/NumericLiteralPrefix:
|
|||||||
- 'test/unit/user_test.rb'
|
- 'test/unit/user_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: MinDigits, Strict.
|
# Configuration parameters: Strict.
|
||||||
Style/NumericLiterals:
|
Style/NumericLiterals:
|
||||||
Exclude:
|
MinDigits: 9
|
||||||
- 'db/schema.rb'
|
|
||||||
- 'lib/redmine/database.rb'
|
|
||||||
- 'test/functional/issues_controller_test.rb'
|
|
||||||
- 'test/functional/messages_controller_test.rb'
|
|
||||||
- 'test/helpers/application_helper_test.rb'
|
|
||||||
- 'test/unit/lib/redmine/i18n_test.rb'
|
|
||||||
- 'test/unit/lib/redmine/plugin_test.rb'
|
|
||||||
- 'test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb'
|
|
||||||
- 'test/unit/mail_handler_test.rb'
|
|
||||||
- 'test/unit/search_test.rb'
|
|
||||||
- 'test/unit/time_entry_test.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
|
||||||
|
|||||||
4
Gemfile
4
Gemfile
@ -84,8 +84,8 @@ group :test do
|
|||||||
gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.25.0")
|
gem "capybara", (RUBY_VERSION < "2.4" ? "~> 3.15.1" : "~> 3.25.0")
|
||||||
gem "selenium-webdriver"
|
gem "selenium-webdriver"
|
||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 0.72.0'
|
gem 'rubocop', '~> 0.74.0'
|
||||||
gem 'rubocop-rails', '~> 2.1.0'
|
gem 'rubocop-rails', '~> 2.3.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user