From c97d560b691667ab2da6473702c2053ba885edce Mon Sep 17 00:00:00 2001 From: Robert Haines Date: Sun, 29 Sep 2019 20:00:07 +0100 Subject: [PATCH] Configure Metrics/AbcSize and turn off for the tests. --- .rubocop.yml | 7 +++++++ .rubocop_todo.yml | 4 ---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 99c0e84..e94a5a8 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -23,6 +23,13 @@ Lint/UselessComparison: Exclude: - 'test/entry_test.rb' +# Turn off ABC metrics for the tests and set a workable max given +# the current state of the code. +Metrics/AbcSize: + Max: 37 + Exclude: + - 'test/**/*.rb' + # Turn block length metrics off for the tests. Metrics/BlockLength: Exclude: diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index d165d40..09e6b00 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -14,10 +14,6 @@ Layout/EmptyLinesAroundClassBody: Exclude: - 'test/extra_field_ut_test.rb' -# Offense count: 120 -Metrics/AbcSize: - Max: 60 - # Offense count: 15 # Configuration parameters: CountComments. Metrics/ClassLength: