From 885d8d2b1cac1d61a30c81916df219c6cc694a6c Mon Sep 17 00:00:00 2001 From: Glenn Sarti Date: Thu, 16 Mar 2017 15:41:02 -0700 Subject: [PATCH] (maint) Add additional rubocop exceptions This commit adds the following exceptions: - Style/EmptyMethod Methods which are empty are typically supposed to not spread over two lines however this is a matter of readability and should not be considered a violation - Metrics/BlockNesting Due to a legacy codebase there are instances where the block depth is quite high. Ignore these violations for the time being. --- .rubocop.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index f49c992..066ea5e 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,6 +17,9 @@ Style/Documentation: Metrics/LineLength: Enabled: false +# Empty method definitions over more than one line is ok +Style/EmptyMethod: + Enabled: false # Due to legacy codebase # - Globals are used liberally @@ -29,6 +32,8 @@ Metrics/PerceivedComplexity: Enabled: false Metrics/CyclomaticComplexity: Enabled: false +Metrics/BlockNesting: + Enabled: false # - Long Methods, Classes, Blocks, and Modules Metrics/MethodLength: Enabled: false