config/enabled.yml in rubocop-0.7.2 vs config/enabled.yml in rubocop-0.8.0
- old
+ new
@@ -99,15 +99,12 @@
# Favor the ternary operator(?:) over if/then/else/end constructs.
OneLineConditional:
Enabled: true
# Avoid using {...} for multi-line blocks (multiline chaining is always ugly).
-MultilineBlocks:
- Enabled: true
-
# Prefer {...} over do...end for single-line blocks.
-SingleLineBlocks:
+Blocks:
Enabled: true
# Avoid parameter lists longer than three or four parameters.
ParameterLists:
Enabled: true
@@ -126,12 +123,12 @@
# Never use unless with else. Rewrite these with the positive case first.
UnlessElse:
Enabled: true
-# Use &&/|| for boolean expressions, and/or for control flow.
-AmpersandsPipesVsAndOr:
+# Use &&/|| instead of and/or.
+AndOr:
Enabled: true
# Use when x then ... for one-line cases.
WhenThen:
Enabled: true
@@ -194,14 +191,10 @@
# Avoid the use of class variables.
AvoidClassVars:
Enabled: true
-# Symbol literals should use snake_case.
-SymbolSnakeCase:
- Enabled: true
-
# Don't interpolate global, instance and class variables directly in strings.
VariableInterpolation:
Enabled: true
# Don't use semicolons to terminate expressions.
@@ -226,18 +219,10 @@
# Avoid using rescue in its modifier form.
RescueModifier:
Enabled: true
-# Avoid the use of %q, %Q, %s and %x.
-PercentLiterals:
- Enabled: true
-
-# Prefer () as delimiters for all % literals.
-BraceAfterPercent:
- Enabled: true
-
# Never use return in an ensure block.
EnsureReturn:
Enabled: true
# Don't suppress exception.
@@ -258,18 +243,14 @@
# Avoid rescuing the Exception class.
RescueException:
Enabled: true
-# Prefer array literal to Array.new.
-ArrayLiteral:
+# Prefer literals to Array.new/Hash.new/String.new.
+EmptyLiteral:
Enabled: true
-# Prefer hash {} literail to Hash.new.
-HashLiteral:
- Enabled: true
-
# When defining binary operators, name the argument other.
OpMethod:
Enabled: true
# Name reduce arguments |a, e| (accumulator, element)
@@ -321,5 +302,21 @@
Enabled: true
# The use of eval represents a serious security risk.
Eval:
Enabled: true
+
+# Symbol literals should use snake_case.
+SymbolName:
+ Enabled: true
+
+# Constants should use SCREAMING_SNAKE_CASE.
+ConstantName:
+ Enabled: true
+
+# Indent private/protected as deep as defs and keep blank lines around them.
+AccessControl:
+ Enabled: true
+
+# Use Kernel#loop with break rather than begin/end/until or begin/end/while for post-loop tests.
+Loop:
+ Enabled: true
\ No newline at end of file