Просмотр исходного кода

Added Metrics/PerceivedComplexity and Metrics/AbcSize as log term targets.

Thorsten Eckel 9 лет назад
Родитель
Сommit
b6d9c2f566
1 измененных файлов с 10 добавлено и 8 удалено
  1. 10 8
      .rubocop.yml

+ 10 - 8
.rubocop.yml

@@ -150,14 +150,22 @@ Rails/HasAndBelongsToMany:
 #  StyleGuide: 'https://github.com/bbatsov/rails-style-guide#has-many-through'
   Enabled: false
 
+Style/ClassAndModuleChildren:
+  Description: 'Checks style of children classes and modules.'
+  Enabled: false
+
+# 2.0
+
 Metrics/PerceivedComplexity:
   Description: >-
                  A complexity metric geared towards measuring complexity for a
                  human reader.
   Enabled: false
 
-Style/ClassAndModuleChildren:
-  Description: 'Checks style of children classes and modules.'
+Metrics/AbcSize:
+  Description: >-
+                 A calculated magnitude based on number of assignments,
+                 branches, and conditions.
   Enabled: false
 
 # TODO
@@ -173,12 +181,6 @@ Style/Documentation:
   Description: 'Document classes and non-namespace modules.'
   Enabled: false
 
-Metrics/AbcSize:
-  Description: >-
-                 A calculated magnitude based on number of assignments,
-                 branches, and conditions.
-  Enabled: false
-
 Style/RedundantSelf:
   Enabled: false
 Style/CommentIndentation: