From b6d9c2f5665e4de35c4f1cad23f6be840ab13a19 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 7 May 2015 13:32:40 +0200 Subject: [PATCH] Added Metrics/PerceivedComplexity and Metrics/AbcSize as log term targets. --- .rubocop.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 36f578fe6..cf8452545 100644 --- a/.rubocop.yml +++ b/.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: