Browse Source

Added Metrics/BlockNesting as log term target.

Thorsten Eckel 9 years ago
parent
commit
afcb6bd728
1 changed files with 5 additions and 2 deletions
  1. 5 2
      .rubocop.yml

+ 5 - 2
.rubocop.yml

@@ -174,6 +174,11 @@ Metrics/CyclomaticComplexity:
                  of test cases needed to validate a method.
   Enabled: false
 
+Metrics/BlockNesting:
+  Description: 'Avoid excessive block nesting'
+  StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
+  Enabled: false
+
 # TODO
 
 Style/FileName:
@@ -193,8 +198,6 @@ Style/GlobalVars:
   Enabled: false
 Rails/TimeZone:
   Enabled: false
-Metrics/BlockNesting:
-  Enabled: false
 Lint/RescueException:
   Enabled: false
 Style/PredicateName: