config/default.yml in rubocop-1.20.0 vs config/default.yml in rubocop-1.21.0
- old
+ new
@@ -955,11 +955,10 @@
Description: 'Checks that line length does not exceed the configured limit.'
StyleGuide: '#max-line-length'
Enabled: true
VersionAdded: '0.25'
VersionChanged: '1.4'
- AutoCorrect: true
Max: 120
# To make it possible to copy or click on URIs in the code, we allow lines
# containing a URI to be longer than Max.
AllowHeredoc: true
AllowURI: true
@@ -1446,10 +1445,17 @@
StyleGuide: '#method-invocation-parens'
Enabled: true
VersionAdded: '0.17'
VersionChanged: '0.83'
+Lint/AmbiguousOperatorPrecedence:
+ Description: >-
+ Checks for expressions containing multiple binary operations with
+ ambiguous precedence.
+ Enabled: pending
+ VersionAdded: '1.21'
+
Lint/AmbiguousRange:
Description: Checks for ranges with ambiguous boundaries.
Enabled: pending
VersionAdded: '1.19'
SafeAutoCorrect: false
@@ -1769,10 +1775,15 @@
Checks for adjacent string literals on the same line, which
could better be represented as a single string literal.
Enabled: true
VersionAdded: '0.36'
+Lint/IncompatibleIoSelectWithFiberScheduler:
+ Description: 'Checks for `IO.select` that is incompatible with Fiber Scheduler.'
+ Enabled: pending
+ VersionAdded: '1.21'
+
Lint/IneffectiveAccessModifier:
Description: >-
Checks for attempts to use `private` or `protected` to set
the visibility of a class method, which does not work.
Enabled: true
@@ -2561,12 +2572,13 @@
ForbiddenDelimiters:
- !ruby/regexp '/(^|\s)(EO[A-Z]{1}|END)(\s|$)/'
Naming/InclusiveLanguage:
Description: 'Recommend the use of inclusive language instead of problematic terms.'
- Enabled: pending
+ Enabled: false
VersionAdded: '1.18'
+ VersionChanged: '1.21'
CheckIdentifiers: true
CheckConstants: true
CheckVariables: true
CheckStrings: false
CheckSymbols: true
@@ -2794,12 +2806,13 @@
Style/AndOr:
Description: 'Use &&/|| instead of and/or.'
StyleGuide: '#no-and-or-or'
Enabled: true
+ SafeAutoCorrect: false
VersionAdded: '0.9'
- VersionChanged: '0.25'
+ VersionChanged: '1.21'
# Whether `and` and `or` are banned only in conditionals (conditionals)
# or completely (always).
EnforcedStyle: conditionals
SupportedStyles:
- always
@@ -2829,13 +2842,13 @@
VersionChanged: '0.31'
Style/AsciiComments:
Description: 'Use only ascii symbols in comments.'
StyleGuide: '#english-comments'
- Enabled: true
+ Enabled: false
VersionAdded: '0.9'
- VersionChanged: '0.52'
+ VersionChanged: '1.21'
AllowedChars:
- ©
Style/Attr:
Description: 'Checks for uses of Module#attr.'
@@ -2993,10 +3006,10 @@
Description: 'Avoid explicit use of the case equality operator(===).'
StyleGuide: '#no-case-equality'
Enabled: true
VersionAdded: '0.9'
VersionChanged: '0.89'
- # If AllowOnConstant is enabled, the cop will ignore violations when the receiver of
+ # If `AllowOnConstant` option is enabled, the cop will ignore violations when the receiver of
# the case equality operator is a constant.
#
# # bad
# /string/ === "string"
#