Browse Source

Added Metrics/CyclomaticComplexity as log term target.

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

+ 6 - 2
.rubocop.yml

@@ -168,6 +168,12 @@ Metrics/AbcSize:
                  branches, and conditions.
   Enabled: false
 
+Metrics/CyclomaticComplexity:
+  Description: >-
+                 A complexity metric that is strongly correlated to the number
+                 of test cases needed to validate a method.
+  Enabled: true
+
 # TODO
 
 Style/FileName:
@@ -185,8 +191,6 @@ Style/RedundantSelf:
   Enabled: false
 Style/CommentIndentation:
   Enabled: false
-Metrics/CyclomaticComplexity:
-  Enabled: false
 Style/GlobalVars:
   Enabled: false
 Rails/TimeZone: