config/enabled.yml in rubocop-0.24.1 vs config/enabled.yml in rubocop-0.25.0
- old
+ new
@@ -52,16 +52,20 @@
Style/BeginBlock:
Description: 'Avoid the use of BEGIN blocks.'
Enabled: true
+Style/BarePercentLiterals:
+ Description: 'Checks if usage of %() or %Q() matches configuration.'
+ Enabled: true
+
Style/BlockComments:
Description: 'Do not use block comments.'
Enabled: true
-Style/BlockNesting:
- Description: 'Avoid excessive block nesting'
+Style/BlockEndNewline:
+ Description: 'Put end statement of multiline block on its own line.'
Enabled: true
Style/Blocks:
Description: >-
Avoid using {...} for multi-line blocks (multiline chaining is
@@ -95,14 +99,10 @@
Style/ClassCheck:
Description: 'Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.'
Enabled: true
-Style/ClassLength:
- Description: 'Avoid classes longer than 100 lines of code.'
- Enabled: true
-
Style/ClassMethods:
Description: 'Use self when defining module/class methods.'
Enabled: true
Style/ClassVars:
@@ -129,14 +129,10 @@
Style/ConstantName:
Description: 'Constants should use SCREAMING_SNAKE_CASE.'
Enabled: true
-Style/CyclomaticComplexity:
- Description: 'Avoid complex methods.'
- Enabled: true
-
Style/DefWithParentheses:
Description: 'Use def with parentheses when there are arguments.'
Enabled: true
Style/DeprecatedHashMethods:
@@ -269,28 +265,20 @@
Description: >-
Use \ instead of + or << to concatenate two string literals at
line end.
Enabled: true
-Style/LineLength:
- Description: 'Limit lines to 80 characters.'
- Enabled: true
-
Style/MethodCallParentheses:
Description: 'Do not use parentheses for method calls with no arguments.'
Enabled: true
Style/MethodDefParentheses:
Description: >-
Checks if the method definitions have or don't have
parentheses.
Enabled: true
-Style/MethodLength:
- Description: 'Avoid methods longer than 10 lines of code.'
- Enabled: true
-
Style/MethodName:
Description: 'Use the configured style when naming methods.'
Enabled: true
Style/ModuleFunction:
@@ -299,10 +287,14 @@
Style/MultilineBlockChain:
Description: 'Avoid multi-line chains of blocks.'
Enabled: true
+Style/MultilineBlockLayout:
+ Description: 'Ensures newlines after multiline block do statements.'
+ Enabled: true
+
Style/MultilineIfThen:
Description: 'Never use then for multi-line if/unless.'
Enabled: true
Style/MultilineTernaryOperator:
@@ -355,24 +347,24 @@
Style/OpMethod:
Description: 'When defining binary operators, name the argument other.'
Enabled: true
-Style/ParameterLists:
- Description: 'Avoid parameter lists longer than three or four parameters.'
- Enabled: true
-
Style/ParenthesesAroundCondition:
Description: >-
Don't use parentheses around the condition of an
if/unless/while.
Enabled: true
Style/PercentLiteralDelimiters:
Description: 'Use `%`-literal delimiters consistently'
Enabled: true
+Style/PercentQLiterals:
+ Description: 'Checks if uses of %Q/%q match the configured preference.'
+ Enabled: true
+
Style/PerlBackrefs:
Description: 'Avoid Perl-style regex back references.'
Enabled: true
Style/PredicateName:
@@ -414,11 +406,13 @@
Style/RescueModifier:
Description: 'Avoid using rescue in its modifier form.'
Enabled: true
Style/SelfAssignment:
- Description: 'Checks for places where self-assignment shorthand should have been used.'
+ Description: >-
+ Checks for places where self-assignment shorthand should have
+ been used.
Enabled: true
Style/Semicolon:
Description: "Don't use semicolons to terminate expressions."
Enabled: true
@@ -593,10 +587,44 @@
Style/WordArray:
Description: 'Use %w or %W for arrays of words.'
Enabled: true
+#################### Metrics ################################
+
+Metrics/BlockNesting:
+ Description: 'Avoid excessive block nesting'
+ Enabled: true
+
+Metrics/ClassLength:
+ Description: 'Avoid classes longer than 100 lines of code.'
+ Enabled: true
+
+Metrics/CyclomaticComplexity:
+ Description: >-
+ A complexity metric that is strongy correlated to the number
+ of test cases needed to validate a method.
+ Enabled: true
+
+Metrics/LineLength:
+ Description: 'Limit lines to 80 characters.'
+ Enabled: true
+
+Metrics/MethodLength:
+ Description: 'Avoid methods longer than 10 lines of code.'
+ Enabled: true
+
+Metrics/ParameterLists:
+ Description: 'Avoid parameter lists longer than three or four parameters.'
+ Enabled: true
+
+Metrics/PerceivedComplexity:
+ Description: >-
+ A complexity metric geared towards measuring complexity for a
+ human reader.
+ Enabled: true
+
#################### Lint ################################
### Warnings
Lint/AmbiguousOperator:
Description: >-
@@ -617,11 +645,13 @@
Lint/BlockAlignment:
Description: 'Align block ends correctly.'
Enabled: true
Lint/ConditionPosition:
- Description: 'Checks for condition placed in a confusing position relative to the keyword.'
+ Description: >-
+ Checks for condition placed in a confusing position relative to
+ the keyword.
Enabled: true
Lint/Debugger:
Description: 'Check for debugger calls.'
Enabled: true
@@ -779,10 +809,12 @@
Rails/Output:
Description: 'Checks for calls to puts, print, etc.'
Enabled: true
Rails/ReadWriteAttribute:
- Description: 'Checks for read_attribute(:attr) and write_attribute(:attr, val).'
+ Description: >-
+ Checks for read_attribute(:attr) and
+ write_attribute(:attr, val).
Enabled: true
Rails/ScopeArgs:
Description: 'Checks the arguments of ActiveRecord scopes.'
Enabled: true