config/enabled.yml in rubocop-0.34.2 vs config/enabled.yml in rubocop-0.35.0
- old
+ new
@@ -413,10 +413,14 @@
Style/NegatedWhile:
Description: 'Favor until over while for negative conditions.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
Enabled: true
+Style/NestedModifier:
+ Description: 'Avoid using nested modifiers.'
+ Enabled: true
+
Style/NestedTernaryOperator:
Description: 'Use one expression per branch in a ternary operator.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-ternary'
Enabled: true
@@ -688,10 +692,15 @@
Style/SpecialGlobalVars:
Description: 'Avoid Perl-style global variables.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
Enabled: true
+Style/StabbyLambdaParentheses:
+ Description: 'Check for the usage of parentheses around stabby lambda arguments.'
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#stabby-lambda-with-args'
+ Enabled: true
+
Style/StringLiterals:
Description: 'Checks if uses of quotes match the configured preference.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
Enabled: true
@@ -757,10 +766,11 @@
Style/TrailingUnderscoreVariable:
Description: >-
Checks for the usage of unneeded trailing underscores at the
end of parallel variable assignment.
+ AllowNamedUnderscoreVariables: true
Enabled: true
Style/VariableInterpolation:
Description: >-
Don't interpolate global, instance and class variables
@@ -855,11 +865,11 @@
Enabled: true
Lint/AmbiguousRegexpLiteral:
Description: >-
Checks for ambiguous regexp literals in the first argument of
- a method invocation without parenthesis.
+ a method invocation without parentheses.
Enabled: true
Lint/AssignmentInCondition:
Description: "Don't use assignment in conditions."
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
@@ -868,11 +878,11 @@
Lint/BlockAlignment:
Description: 'Align block ends correctly.'
Enabled: true
Lint/CircularArgumentReference:
- Description: "Don't refer to the keyword argument in the default value."
+ Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."
Enabled: true
Lint/ConditionPosition:
Description: >-
Checks for condition placed in a confusing position relative to
@@ -1077,10 +1087,14 @@
Use `detect` instead of `select.first`, `find_all.first`,
`select.last`, and `find_all.last`.
Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
Enabled: true
+Performance/FixedSize:
+ Description: 'Do not compute the size of statically sized objects except in constants'
+ Enabled: true
+
Performance/FlatMap:
Description: >-
Use `Enumerable#flat_map`
instead of `Enumerable#map...Array#flatten(1)`
or `Enumberable#collect..Array#flatten(1)`
@@ -1151,9 +1165,13 @@
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
Enabled: true
Rails/Output:
Description: 'Checks for calls to puts, print, etc.'
+ Enabled: true
+
+Rails/PluralizationGrammar:
+ Description: 'Checks for incorrect grammar when using methods like `3.day.ago`.'
Enabled: true
Rails/ReadWriteAttribute:
Description: >-
Checks for read_attribute(:attr) and