From dfed6ab4cd2f56d396dd5d51ff9e8627b34d906d Mon Sep 17 00:00:00 2001 From: Greg Lazarev Date: Thu, 1 Jun 2017 17:22:36 -0700 Subject: [PATCH] Update block length rule to ignore tests --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 0226711de..fac0045cb 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -345,6 +345,9 @@ Metrics/AbcSize: conditions. Enabled: true Max: 15 +Metrics/BlockLength: + Exclude: + - "spec/**/*" Metrics/BlockNesting: Description: Avoid excessive block nesting StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count