mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Update RuboCop to 0.75.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18576 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
0e9dc0a63a
commit
cd7a5c2f2f
@ -57,6 +57,9 @@ Rails/BulkChangeTable:
|
|||||||
Rails/HelperInstanceVariable:
|
Rails/HelperInstanceVariable:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Style/FormatStringToken:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
Style/FrozenStringLiteralComment:
|
Style/FrozenStringLiteralComment:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
EnforcedStyle: always
|
EnforcedStyle: always
|
||||||
|
|||||||
@ -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.74.0.
|
# using RuboCop version 0.75.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
|
||||||
@ -151,7 +151,22 @@ Layout/EmptyLineBetweenDefs:
|
|||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
Layout/EmptyLines:
|
Layout/EmptyLines:
|
||||||
Enabled: false
|
Exclude:
|
||||||
|
- 'app/models/issue.rb'
|
||||||
|
- 'app/models/time_entry_import.rb'
|
||||||
|
- 'config/routes.rb'
|
||||||
|
- 'db/migrate/001_setup.rb'
|
||||||
|
- 'lib/redmine/sudo_mode.rb'
|
||||||
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||||
|
- 'test/functional/activities_controller_test.rb'
|
||||||
|
- 'test/functional/email_addresses_controller_test.rb'
|
||||||
|
- 'test/functional/project_enumerations_controller_test.rb'
|
||||||
|
- 'test/functional/settings_controller_test.rb'
|
||||||
|
- 'test/functional/users_controller_test.rb'
|
||||||
|
- 'test/helpers/application_helper_test.rb'
|
||||||
|
- 'test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb'
|
||||||
|
- 'test/unit/project_test.rb'
|
||||||
|
- 'test/unit/query_test.rb'
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
@ -549,6 +564,12 @@ Lint/ParenthesesAsGroupedExpression:
|
|||||||
- 'test/unit/attachment_test.rb'
|
- 'test/unit/attachment_test.rb'
|
||||||
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
- 'test/unit/lib/redmine/export/pdf_test.rb'
|
||||||
|
|
||||||
|
# Cop supports --auto-correct.
|
||||||
|
Lint/SendWithMixinArgument:
|
||||||
|
Exclude:
|
||||||
|
- 'lib/redmine/acts/positioned.rb'
|
||||||
|
- 'test/object_helpers.rb'
|
||||||
|
|
||||||
Lint/ShadowingOuterLocalVariable:
|
Lint/ShadowingOuterLocalVariable:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
@ -587,7 +608,6 @@ 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
|
||||||
@ -632,7 +652,7 @@ Naming/MemoizedInstanceVariableName:
|
|||||||
- 'lib/redmine/helpers/calendar.rb'
|
- 'lib/redmine/helpers/calendar.rb'
|
||||||
- 'lib/redmine/search.rb'
|
- 'lib/redmine/search.rb'
|
||||||
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle, IgnoredPatterns.
|
||||||
# SupportedStyles: snake_case, camelCase
|
# SupportedStyles: snake_case, camelCase
|
||||||
Naming/MethodName:
|
Naming/MethodName:
|
||||||
Exclude:
|
Exclude:
|
||||||
@ -1150,17 +1170,6 @@ Style/FormatString:
|
|||||||
- 'lib/redmine/i18n.rb'
|
- 'lib/redmine/i18n.rb'
|
||||||
- 'lib/redmine/info.rb'
|
- 'lib/redmine/info.rb'
|
||||||
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
|
||||||
# SupportedStyles: annotated, template, unannotated
|
|
||||||
Style/FormatStringToken:
|
|
||||||
Exclude:
|
|
||||||
- 'app/models/query.rb'
|
|
||||||
- 'lib/redmine/helpers/gantt.rb'
|
|
||||||
- 'lib/redmine/i18n.rb'
|
|
||||||
- 'lib/redmine/info.rb'
|
|
||||||
- 'test/helpers/application_helper_test.rb'
|
|
||||||
- 'test/unit/lib/redmine/unified_diff_test.rb'
|
|
||||||
|
|
||||||
# Configuration parameters: AllowedVariables.
|
# Configuration parameters: AllowedVariables.
|
||||||
Style/GlobalVars:
|
Style/GlobalVars:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|||||||
2
Gemfile
2
Gemfile
@ -84,7 +84,7 @@ 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.74.0'
|
gem 'rubocop', '~> 0.75.0'
|
||||||
gem 'rubocop-performance', '~> 1.4.1'
|
gem 'rubocop-performance', '~> 1.4.1'
|
||||||
gem 'rubocop-rails', '~> 2.3.0'
|
gem 'rubocop-rails', '~> 2.3.0'
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user