config/enabled.yml in rubocop-0.41.2 vs config/enabled.yml in rubocop-0.42.0
- old
+ new
@@ -415,10 +415,15 @@
Style/MethodName:
Description: 'Use the configured style when naming methods.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars'
Enabled: true
+Style/MethodMissing:
+ Description: 'Avoid using `method_missing`.'
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-method-missing'
+ Enabled: true
+
Style/ModuleFunction:
Description: 'Checks for usage of `extend self` in modules.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
Enabled: true
@@ -545,10 +550,16 @@
Style/NumericLiteralPrefix:
Description: 'Use smallcase prefixes for numeric literals.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#numeric-literal-prefixes'
Enabled: true
+Style/NumericPredicate:
+ Description: >-
+ Checks for the use of predicate- or comparison methods for
+ numeric comparisons.
+ Enabled: true
+
Style/OneLineConditional:
Description: >-
Favor the ternary operator(?:) over
if/then/else/end constructs.
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
@@ -830,10 +841,14 @@
Style/Tab:
Description: 'No hard tabs.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#spaces-indentation'
Enabled: true
+Style/TernaryParentheses:
+ Description: 'Checks for use of parentheses around ternary conditions.'
+ Enabled: true
+
Style/TrailingBlankLines:
Description: 'Checks trailing blank lines and final newline.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#newline-eof'
Enabled: true
@@ -1204,10 +1219,11 @@
Enabled: true
Lint/UselessAccessModifier:
Description: 'Checks for useless access modifiers.'
Enabled: true
+ ContextCreatingMethods: []
Lint/UselessArraySplat:
Description: 'Checks for useless array splats.'
Enabled: true
@@ -1398,18 +1414,21 @@
exits during unit testing or running in production.
Enabled: true
Rails/FindBy:
Description: 'Prefer find_by over where.first.'
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find_by'
Enabled: true
Rails/FindEach:
Description: 'Prefer all.find_each over all.find.'
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#find-each'
Enabled: true
Rails/HasAndBelongsToMany:
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through'
Enabled: true
Rails/Output:
Description: 'Checks for calls to puts, print, etc.'
Enabled: true
@@ -1424,9 +1443,10 @@
Rails/ReadWriteAttribute:
Description: >-
Checks for read_attribute(:attr) and
write_attribute(:attr, val).
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#read-attribute'
Enabled: true
Rails/RequestReferer:
Description: 'Use consistent syntax for request.referer.'
Enabled: true