config/upstream.yml in cookstyle-7.13.0 vs config/upstream.yml in cookstyle-7.14.2
- old
+ new
@@ -375,14 +375,15 @@
Description: 'Put end statement of multiline block on its own line.'
Enabled: true
VersionAdded: '0.49'
Layout/CaseIndentation:
- Description: 'Indentation of when in a case/when/[else/]end.'
+ Description: 'Indentation of when in a case/(when|in)/[else/]end.'
StyleGuide: '#indent-when-to-case'
Enabled: true
VersionAdded: '0.49'
+ VersionChanged: '1.16'
EnforcedStyle: case
SupportedStyles:
- case
- end
IndentOneStep: false
@@ -769,11 +770,11 @@
Align the elements of a hash literal if they span more than
one line.
Enabled: true
AllowMultipleStyles: true
VersionAdded: '0.49'
- VersionChanged: '0.77'
+ VersionChanged: '1.16'
# Alignment of entries using hash rocket as separator. Valid values are:
#
# key - left alignment of keys
# 'a' => 2
# 'bb' => 3
@@ -1643,10 +1644,16 @@
Description: 'Enforces that Ruby source files are not empty.'
Enabled: true
AllowComments: true
VersionAdded: '0.90'
+Lint/EmptyInPattern:
+ Description: 'Checks for the presence of `in` pattern branches without a body.'
+ Enabled: pending
+ AllowComments: true
+ VersionAdded: '1.16'
+
Lint/EmptyInterpolation:
Description: 'Checks for empty string interpolation.'
Enabled: true
VersionAdded: '0.20'
VersionChanged: '0.45'
@@ -2090,10 +2097,11 @@
Lint/SymbolConversion:
Description: 'Checks for unnecessary symbol conversions.'
Enabled: pending
VersionAdded: '1.9'
+ VersionChanged: '1.16'
EnforcedStyle: strict
SupportedStyles:
- strict
- consistent
@@ -3488,12 +3496,14 @@
Style/HashEachMethods:
Description: 'Use Hash#each_key and Hash#each_value.'
StyleGuide: '#hash-each'
Enabled: true
- VersionAdded: '0.80'
Safe: false
+ VersionAdded: '0.80'
+ VersionChanged: '1.16'
+ AllowedReceivers: []
Style/HashExcept:
Description: >-
Checks for usages of `Hash#reject`, `Hash#select`, and `Hash#filter` methods
that can be replaced with `Hash#except` method.
@@ -3552,10 +3562,11 @@
Checks that conditional statements do not have an identical
line at the end of each branch, which can validly be moved
out of the conditional.
Enabled: true
VersionAdded: '0.36'
+ VersionChanged: '1.16'
Style/IfInsideElse:
Description: 'Finds if nodes inside else, which can be converted to elsif.'
Enabled: true
AllowIfModifier: false
@@ -3598,10 +3609,16 @@
Use `raise` or `fail` with an explicit exception class and
message, rather than just a message.
Enabled: false
VersionAdded: '0.41'
+Style/InPatternThen:
+ Description: 'Checks for `in;` uses in `case` expressions.'
+ StyleGuide: '#no-in-pattern-semicolons'
+ Enabled: pending
+ VersionAdded: '1.16'
+
Style/InfiniteLoop:
Description: >-
Use Kernel#loop for infinite loops.
This cop is unsafe in the body may raise a `StopIteration` exception.
Safe: false
@@ -3826,10 +3843,16 @@
StyleGuide: '#no-then'
Enabled: true
VersionAdded: '0.9'
VersionChanged: '0.26'
+Style/MultilineInPatternThen:
+ Description: 'Do not use `then` for multi-line `in` statement.'
+ StyleGuide: '#no-then'
+ Enabled: pending
+ VersionAdded: '1.16'
+
Style/MultilineMemoization:
Description: 'Wrap multiline memoizations in a `begin` and `end` block.'
Enabled: true
VersionAdded: '0.44'
VersionChanged: '0.48'
@@ -4183,9 +4206,19 @@
Description: 'Use proc instead of Proc.new.'
StyleGuide: '#proc'
Enabled: true
VersionAdded: '0.9'
VersionChanged: '0.18'
+
+Style/QuotedSymbols:
+ Description: 'Use a consistent style for quoted symbols.'
+ Enabled: pending
+ VersionAdded: '1.16'
+ EnforcedStyle: same_as_string_literals
+ SupportedStyles:
+ - same_as_string_literals
+ - single_quotes
+ - double_quotes
Style/RaiseArgs:
Description: 'Checks the arguments passed to raise/fail.'
StyleGuide: '#exception-class-messages'
Enabled: true