config/upstream.yml in cookstyle-7.16.1 vs config/upstream.yml in cookstyle-7.17.0
- old
+ new
@@ -1432,10 +1432,17 @@
StyleGuide: '#method-invocation-parens'
Enabled: true
VersionAdded: '0.17'
VersionChanged: '0.83'
+Lint/AmbiguousRange:
+ Description: Checks for ranges with ambiguous boundaries.
+ Enabled: pending
+ VersionAdded: '1.19'
+ SafeAutoCorrect: false
+ RequireParenthesesForMethodChains: false
+
Lint/AmbiguousRegexpLiteral:
Description: >-
Checks for ambiguous regexp literals in the first argument of
a method invocation without parentheses.
Enabled: true
@@ -1822,11 +1829,10 @@
Lint/MultipleComparison:
Description: "Use `&&` operator to compare multiple values."
Enabled: true
VersionAdded: '0.47'
VersionChanged: '1.1'
- AllowMethodComparison: true
Lint/NestedMethodDefinition:
Description: 'Do not use nested method definitions.'
StyleGuide: '#no-nested-methods'
Enabled: true
@@ -2555,10 +2561,11 @@
Regex: !ruby/regexp '/black[-_\s]?list/'
Suggestions:
- denylist
- block
slave:
+ WholeWord: true
Suggestions: ['replica', 'secondary', 'follower']
Naming/MemoizedInstanceVariableName:
Description: >-
Memoized method name should match memo instance variable name.
@@ -3153,12 +3160,13 @@
RequireColon: true
Style/CommentedKeyword:
Description: 'Do not place comments on the same line as certain keywords.'
Enabled: true
+ SafeAutoCorrect: false
VersionAdded: '0.51'
- VersionChanged: '1.7'
+ VersionChanged: '1.19'
Style/ConditionalAssignment:
Description: >-
Use the return value of `if` and `case` statements for
assignment to a variable and variable comparison instead
@@ -3601,12 +3609,13 @@
Description: >-
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
+ SafeAutoCorrect: false
VersionAdded: '0.36'
- VersionChanged: '1.16'
+ VersionChanged: '1.19'
Style/IfInsideElse:
Description: 'Finds if nodes inside else, which can be converted to elsif.'
Enabled: true
AllowIfModifier: false
@@ -3927,10 +3936,11 @@
Avoid comparing a variable with multiple items in a conditional,
use Array#include? instead.
Enabled: true
VersionAdded: '0.49'
VersionChanged: '1.1'
+ AllowMethodComparison: true
Style/MutableConstant:
Description: 'Do not assign mutable objects to constants.'
Enabled: true
VersionAdded: '0.34'
@@ -4150,10 +4160,11 @@
- options
- opts
- args
- params
- parameters
+ Allowlist: []
Style/OptionalArguments:
Description: >-
Checks for optional arguments that do not appear at the end
of the argument list.
@@ -4402,10 +4413,15 @@
Description: 'Checks for places where redundant assignments are made for in place modification methods.'
Enabled: true
Safe: false
VersionAdded: '0.90'
+Style/RedundantSelfAssignmentBranch:
+ Description: 'Checks for places where conditional branch makes redundant self-assignment.'
+ Enabled: pending
+ VersionAdded: '1.19'
+
Style/RedundantSort:
Description: >-
Use `min` instead of `sort.first`,
`max_by` instead of `sort_by...last`, etc.
Enabled: true
@@ -4573,10 +4589,11 @@
StyleGuide: '#no-cryptic-perlisms'
Enabled: true
VersionAdded: '0.13'
VersionChanged: '0.36'
SafeAutoCorrect: false
+ RequireEnglish: true
EnforcedStyle: use_english_names
SupportedStyles:
- use_perl_names
- use_english_names
@@ -4893,11 +4910,11 @@
VersionAdded: '0.9'
VersionChanged: '0.20'
Style/WhenThen:
Description: 'Use when x then ... for one-line cases.'
- StyleGuide: '#one-line-cases'
+ StyleGuide: '#no-when-semicolons'
Enabled: true
VersionAdded: '0.9'
Style/WhileUntilDo:
Description: 'Checks for redundant do after while or until.'
@@ -4917,10 +4934,10 @@
Style/WordArray:
Description: 'Use %w or %W for arrays of words.'
StyleGuide: '#percent-w'
Enabled: true
VersionAdded: '0.9'
- VersionChanged: '0.36'
+ VersionChanged: '1.19'
EnforcedStyle: percent
SupportedStyles:
# percent style: %w(word1 word2)
- percent
# bracket style: ['word1', 'word2']