From e2e8ce766020e99a170d0744d69f1c743c9ca736 Mon Sep 17 00:00:00 2001 From: Alexander Fisher Date: Fri, 14 Oct 2016 16:53:17 +0100 Subject: [PATCH] Disable Metric/BlockLength cop `Metric/BlockLength` is a new cop in rubocop 0.44. https://github.com/bbatsov/rubocop/issues/3566 All puppet type definitions occur in blocks that are almost always longer than 25 lines. I don't see much benefit in having the cop enabled, and then having to disable it with control comments instead. Signed-off-by: Alexander Fisher --- moduleroot/.rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/moduleroot/.rubocop.yml b/moduleroot/.rubocop.yml index c641e711..2ae1e33a 100644 --- a/moduleroot/.rubocop.yml +++ b/moduleroot/.rubocop.yml @@ -62,6 +62,9 @@ Style/AndOr: Style/RedundantSelf: Enabled: True +Metric/BlockLength: + Enabled: False + # Method length is not necessarily an indicator of code quality Metrics/MethodLength: Enabled: False