config/default.yml in rubocop-0.69.0 vs config/default.yml in rubocop-0.70.0
- old
+ new
@@ -258,10 +258,11 @@
Layout/AlignHash:
Description: >-
Align the elements of a hash literal if they span more than
one line.
Enabled: true
+ AllowMultipleStyles: true
VersionAdded: '0.49'
# Alignment of entries using hash rocket as separator. Valid values are:
#
# key - left alignment of keys
# 'a' => 2
@@ -506,10 +507,17 @@
Layout/EmptyLinesAroundAccessModifier:
Description: "Keep blank lines around access modifiers."
StyleGuide: '#empty-lines-around-access-modifier'
Enabled: true
VersionAdded: '0.49'
+ EnforcedStyle: around
+ SupportedStyles:
+ - around
+ - only_before
+ Reference:
+ # A reference to `EnforcedStyle: only_before`.
+ - https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions
Layout/EmptyLinesAroundArguments:
Description: "Keeps track of empty lines around method arguments."
Enabled: true
VersionAdded: '0.52'
@@ -778,10 +786,13 @@
# logical depth shall have the same indentation.
EnforcedStyle: normal
SupportedStyles:
- normal
- rails
+ Reference:
+ # A reference to `EnforcedStyle: rails`.
+ - https://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html#follow-the-coding-conventions
Layout/IndentationWidth:
Description: 'Use 2 spaces for indentation.'
StyleGuide: '#spaces-indentation'
Enabled: true
@@ -1357,11 +1368,13 @@
Lint/HandleExceptions:
Description: "Don't suppress exception."
StyleGuide: '#dont-hide-exceptions'
Enabled: true
+ AllowComments: false
VersionAdded: '0.9'
+ VersionChanged: '0.70'
Lint/HeredocMethodCallPosition:
Description: >-
Checks for the ordering of a method call where
the receiver of the call is a HEREDOC.
@@ -1460,10 +1473,12 @@
Lint/NumberConversion:
Description: 'Checks unsafe usage of number conversion methods.'
Enabled: false
VersionAdded: '0.53'
+ VersionChanged: '0.70'
+ SafeAutoCorrect: false
Lint/OrderedMagicComments:
Description: 'Checks the proper ordering of magic comments and whether a magic comment is not placed before a shebang.'
Enabled: true
VersionAdded: '0.53'
@@ -3750,11 +3765,12 @@
Style/PreferredHashMethods:
Description: 'Checks use of `has_key?` and `has_value?` Hash methods.'
StyleGuide: '#hash-key'
Enabled: true
+ Safe: false
VersionAdded: '0.41'
- VersionChanged: '0.44'
+ VersionChanged: '0.70'
EnforcedStyle: short
SupportedStyles:
- short
- verbose