config/default.yml in rubocop-1.8.1 vs config/default.yml in rubocop-1.9.0
- old
+ new
@@ -1804,10 +1804,21 @@
IgnoredMethods: []
IgnoredClasses:
- Time
- DateTime
+Lint/NumberedParameterAssignment:
+ Description: 'Checks for uses of numbered parameter assignment.'
+ Enabled: pending
+ VersionAdded: '1.9'
+
+Lint/OrAssignmentToConstant:
+ Description: 'Checks unintended or-assignment to constant.'
+ Enabled: pending
+ Safe: false
+ VersionAdded: '1.9'
+
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'
@@ -2030,16 +2041,20 @@
Enabled: true
AllowComments: true
VersionAdded: '0.9'
VersionChanged: '0.81'
+Lint/SymbolConversion:
+ Description: 'Checks for unnecessary symbol conversions.'
+ Enabled: pending
+ VersionAdded: '1.9'
+
Lint/Syntax:
- Description: 'Checks syntax error.'
+ Description: 'Checks for syntax errors.'
Enabled: true
VersionAdded: '0.9'
-
Lint/ToEnumArguments:
Description: 'This cop ensures that `to_enum`/`enum_for`, called for the current method, has correct arguments.'
Enabled: pending
VersionAdded: '1.1'
@@ -2056,10 +2071,15 @@
Lint/TrailingCommaInAttributeDeclaration:
Description: 'This cop checks for trailing commas in attribute declarations.'
Enabled: true
VersionAdded: '0.90'
+Lint/TripleQuotes:
+ Description: 'Checks for useless triple quote constructs.'
+ Enabled: pending
+ VersionAdded: '1.9'
+
Lint/UnderscorePrefixedVariableName:
Description: 'Do not use prefix `_` for a variable that is used.'
Enabled: true
VersionAdded: '0.21'
AllowKeywordBlockArguments: false
@@ -2687,11 +2707,12 @@
Description: 'Use only ascii symbols in comments.'
StyleGuide: '#english-comments'
Enabled: true
VersionAdded: '0.9'
VersionChanged: '0.52'
- AllowedChars: []
+ AllowedChars:
+ - ©
Style/Attr:
Description: 'Checks for uses of Module#attr.'
StyleGuide: '#attr'
Enabled: true
@@ -3118,10 +3139,12 @@
Style/DisableCopsWithinSourceCodeDirective:
Description: >-
Forbids disabling/enabling cops within source code.
Enabled: false
VersionAdded: '0.82'
+ VersionChanged: '1.9'
+ AllowedCops: []
Style/DocumentDynamicEvalDefinition:
Description: >-
When using `class_eval` (or other `eval`) with string interpolation,
add a comment block showing its appearance if interpolated.
@@ -3289,11 +3312,12 @@
Description: 'For performing float division, coerce one side only.'
StyleGuide: '#float-division'
Reference: 'https://blog.rubystyle.guide/ruby/2019/06/21/float-division.html'
Enabled: true
VersionAdded: '0.72'
- VersionChanged: '1.6'
+ VersionChanged: '1.9'
+ Safe: false
EnforcedStyle: single_coerce
SupportedStyles:
- left_coerce
- right_coerce
- single_coerce
@@ -3337,10 +3361,11 @@
# style token in a format string to be allowed when enforced style is not
# `unannotated`.
MaxUnannotatedPlaceholdersAllowed: 1
VersionAdded: '0.49'
VersionChanged: '1.0'
+ IgnoredMethods: []
Style/FrozenStringLiteralComment:
Description: >-
Add the frozen_string_literal comment to the top of files
to help transition to frozen string literals by default.
@@ -3489,9 +3514,14 @@
Description: >-
Avoid modifier if/unless usage on conditionals.
Enabled: true
VersionAdded: '0.39'
VersionChanged: '0.87'
+
+Style/IfWithBooleanLiteralBranches:
+ Description: 'Checks for redundant `if` with boolean literal branches.'
+ Enabled: pending
+ VersionAdded: '1.9'
Style/IfWithSemicolon:
Description: 'Do not use if x; .... Use the ternary operator instead.'
StyleGuide: '#no-semicolon-ifs'
Enabled: true