mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Update RuboCop to 0.72.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18320 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -16,8 +16,8 @@ AllCops:
|
|||||||
|
|
||||||
# Enable extensions
|
# Enable extensions
|
||||||
|
|
||||||
Rails:
|
require:
|
||||||
Enabled: true
|
- rubocop-rails
|
||||||
|
|
||||||
# Rules for Redmine
|
# Rules for Redmine
|
||||||
|
|
||||||
|
|||||||
@@ -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.71.0.
|
# using RuboCop version 0.72.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,7 +313,7 @@ Layout/IndentHeredoc:
|
|||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: normal, rails
|
# SupportedStyles: normal, indented_internal_methods
|
||||||
Layout/IndentationConsistency:
|
Layout/IndentationConsistency:
|
||||||
Exclude:
|
Exclude:
|
||||||
- 'app/models/attachment.rb'
|
- 'app/models/attachment.rb'
|
||||||
@@ -1009,6 +1009,26 @@ Rails/HasManyOrHasOneDependent:
|
|||||||
- 'app/models/tracker.rb'
|
- 'app/models/tracker.rb'
|
||||||
- 'app/models/wiki.rb'
|
- 'app/models/wiki.rb'
|
||||||
|
|
||||||
|
# Configuration parameters: Include.
|
||||||
|
# Include: app/helpers/**/*.rb
|
||||||
|
Rails/HelperInstanceVariable:
|
||||||
|
Exclude:
|
||||||
|
- 'app/helpers/application_helper.rb'
|
||||||
|
- 'app/helpers/attachments_helper.rb'
|
||||||
|
- 'app/helpers/context_menus_helper.rb'
|
||||||
|
- 'app/helpers/imports_helper.rb'
|
||||||
|
- 'app/helpers/issues_helper.rb'
|
||||||
|
- 'app/helpers/journals_helper.rb'
|
||||||
|
- 'app/helpers/projects_helper.rb'
|
||||||
|
- 'app/helpers/queries_helper.rb'
|
||||||
|
- 'app/helpers/repositories_helper.rb'
|
||||||
|
- 'app/helpers/search_helper.rb'
|
||||||
|
- 'app/helpers/sort_helper.rb'
|
||||||
|
- 'app/helpers/timelog_helper.rb'
|
||||||
|
- 'app/helpers/users_helper.rb'
|
||||||
|
- 'app/helpers/versions_helper.rb'
|
||||||
|
- 'app/helpers/workflows_helper.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
# SupportedStyles: numeric, symbolic
|
# SupportedStyles: numeric, symbolic
|
||||||
@@ -1353,6 +1373,7 @@ Style/IdenticalConditionalBranches:
|
|||||||
- 'config/initializers/10-patches.rb'
|
- 'config/initializers/10-patches.rb'
|
||||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||||
|
|
||||||
|
# Configuration parameters: AllowIfModifier.
|
||||||
Style/IfInsideElse:
|
Style/IfInsideElse:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|||||||
3
Gemfile
3
Gemfile
@@ -84,7 +84,8 @@ group :test do
|
|||||||
gem "capybara", '~> 2.13'
|
gem "capybara", '~> 2.13'
|
||||||
gem "selenium-webdriver"
|
gem "selenium-webdriver"
|
||||||
# RuboCop
|
# RuboCop
|
||||||
gem 'rubocop', '~> 0.71.0'
|
gem 'rubocop', '~> 0.72.0'
|
||||||
|
gem 'rubocop-rails', '~> 2.1.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
|
||||||
|
|||||||
Reference in New Issue
Block a user