config/default.yml in rubocop-1.28.2 vs config/default.yml in rubocop-1.29.0
- old
+ new
@@ -138,11 +138,11 @@
# try to determine the desired version of Ruby by inspecting the
# .tool-versions file first, then .ruby-version, followed by the Gemfile.lock
# or gems.locked file. (Although the Ruby version is specified in the Gemfile
# or gems.rb file, RuboCop reads the final value from the lock file.) If the
# Ruby version is still unresolved, RuboCop will use the oldest officially
- # supported Ruby version (currently Ruby 2.5).
+ # supported Ruby version (currently Ruby 2.6).
TargetRubyVersion: ~
# Determines if a notification for extension libraries should be shown when
# rubocop is run. Keys are the name of the extension, and values are an array
# of gems in the Gemfile that the extension is suggested for, if not already
# included.
@@ -240,10 +240,22 @@
Enabled: pending
VersionAdded: '1.10'
Include:
- '**/*.gemspec'
+Gemspec/DependencyVersion:
+ Description: 'Requires or forbids specifying gem dependency versions.'
+ Enabled: false
+ VersionAdded: '1.29'
+ EnforcedStyle: 'required'
+ SupportedStyles:
+ - 'required'
+ - 'forbidden'
+ Include:
+ - '**/*.gemspec'
+ AllowedGems: []
+
Gemspec/DuplicatedAssignment:
Description: 'An attribute assignment method calls should be listed only once in a gemspec.'
Enabled: true
VersionAdded: '0.52'
Include:
@@ -2327,15 +2339,10 @@
Description: 'Checks for useless assignment to a local variable.'
StyleGuide: '#underscore-unused-vars'
Enabled: true
VersionAdded: '0.11'
-Lint/UselessElseWithoutRescue:
- Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
- Enabled: true
- VersionAdded: '0.17'
-
Lint/UselessMethodDefinition:
Description: 'Checks for useless method definitions.'
Enabled: true
VersionAdded: '0.90'
VersionChanged: '0.91'
@@ -2770,10 +2777,11 @@
EnforcedStyle: snake_case
SupportedStyles:
- snake_case
- camelCase
AllowedIdentifiers: []
+ AllowedPatterns: []
Naming/VariableNumber:
Description: 'Use the configured style when numbering symbols, methods and variables.'
StyleGuide: '#snake-case-symbols-methods-vars-with-numbers'
Enabled: true
@@ -2791,10 +2799,11 @@
- iso8601 # Time#iso8601
- rfc1123_date # CGI.rfc1123_date
- rfc822 # Time#rfc822
- rfc2822 # Time#rfc2822
- rfc3339 # DateTime.rfc3339
+ AllowedPatterns: []
#################### Security ##############################
Security/CompoundHash:
Description: 'When overwriting Object#hash to combine values, prefer delegating to Array#hash over writing a custom implementation.'
@@ -3492,9 +3501,15 @@
EnforcedStyle: allow_single_line
SupportedStyles:
- allow_single_line
- allow_always
- disallow
+
+Style/EnvHome:
+ Description: "Checks for consistent usage of `ENV['HOME']`."
+ Enabled: pending
+ Safe: false
+ VersionAdded: '1.29'
Style/EvalWithLocation:
Description: 'Pass `__FILE__` and `__LINE__` to `eval` method, as they are used by backtraces.'
Enabled: true
VersionAdded: '0.52'