config/enabled.yml in rubocop-0.15.0 vs config/enabled.yml in rubocop-0.16.0
- old
+ new
@@ -2,10 +2,14 @@
AccessModifierIndentation:
Description: Check indentation of private/protected visibility modifiers.
Enabled: true
+AccessorMethodName:
+ Description: Check the naming of accessor methods for get_/set_.
+ Enabled: true
+
Alias:
Description: 'Use alias_method instead of alias.'
Enabled: true
AlignArray:
@@ -64,11 +68,11 @@
CaseEquality:
Description: 'Avoid explicit use of the case equality operator(===).'
Enabled: true
CaseIndentation:
- Description: 'Indent when as deep as case.'
+ Description: 'Indentation of when in a case/when/[else/]end.'
Enabled: true
CharacterLiteral:
Description: 'Checks for uses of character literals.'
Enabled: true
@@ -107,16 +111,10 @@
DefWithParentheses:
Description: 'Use def with parentheses when there are arguments.'
Enabled: true
-DefWithoutParentheses:
- Description: >
- Omit the parentheses when the method doesn't accept
- any arguments.
- Enabled: true
-
Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: true
DotPosition:
@@ -187,12 +185,16 @@
FinalNewline:
Description: 'Checks for a final newline in a source file.'
Enabled: true
+FlipFlop:
+ Description: 'Checks for flip flops'
+ Enabled: true
+
For:
- Description: 'Prefer each over for.'
+ Description: 'Checks use of for or each in multiline loops.'
Enabled: true
GlobalVars:
Description: 'Do not introduce global variables.'
Enabled: true
@@ -249,10 +251,16 @@
MethodCallParentheses:
Description: 'Do not use parentheses for method calls with no arguments.'
Enabled: true
+MethodDefParentheses:
+ Description: >
+ Checks if the method definitions have or don't have
+ parentheses.
+ Enabled: true
+
MethodLength:
Description: 'Avoid methods longer than 10 lines of code.'
Enabled: true
MethodName:
@@ -317,22 +325,22 @@
PerlBackrefs:
Description: 'Avoid Perl-style regex back references.'
Enabled: true
+PredicateName:
+ Description: 'Check the names of predicate methods.'
+ Enabled: true
+
Proc:
Description: 'Use proc instead of Proc.new.'
Enabled: true
RaiseArgs:
Description: 'Checks the arguments passed to raise/fail.'
Enabled: true
-ReduceArguments:
- Description: 'Name reduce arguments |a, e| (accumulator, element)'
- Enabled: true
-
RedundantBegin:
Description: "Don't use begin blocks when they are not needed."
Enabled: true
RedundantException:
@@ -369,10 +377,14 @@
SignalException:
Description: 'Checks for proper usage of fail and raise.'
Enabled: true
+SingleLineBlockParams:
+ Description: 'Enforces the names of some block params.'
+ Enabled: true
+
SingleLineMethods:
Description: 'Avoid single-line methods.'
Enabled: true
SpaceAroundOperators:
@@ -440,14 +452,10 @@
StringLiterals:
Description: 'Checks if uses of quotes match the configured preference.'
Enabled: true
-SymbolName:
- Description: 'Symbol literals should use snake_case.'
- Enabled: true
-
Tab:
Description: 'No hard tabs.'
Enabled: true
TrailingBlankLines:
@@ -572,9 +580,13 @@
Void:
Description: 'Possible use of operator/literal/variable in void context.'
Enabled: true
##################### Rails ##################################
+
+DefaultScope:
+ Description: 'Checks if the argument passed to default_scope is a block.'
+ Enabled: true
HasAndBelongsToMany:
Description: 'Prefer has_many :through to has_and_belongs_to_many.'
Enabled: true