From 93eb40da13ce425fb464aeb8960c6ab5d0b69bd0 Mon Sep 17 00:00:00 2001 From: Jon Hopson Date: Thu, 27 Feb 2020 09:27:50 -0500 Subject: [PATCH] Lint/AmbiguousBlockAssociation --- rubocop.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/rubocop.yml b/rubocop.yml index e0ca89ffd..b02ccd056 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -46,6 +46,13 @@ Layout/EmptyLinesAroundModuleBody: Layout/MultilineMethodCallIndentation: EnforcedStyle: indented +# This cop checks for ambiguous block association with method when param passed without parentheses +# However, the style of ambiguous block is standard in specs +# https://github.com/rubocop-hq/rubocop/issues/4222 +Lint/AmbiguousBlockAssociation: + Exclude: + - "spec/**/*" + # Allows lengthy describes in specs # https://github.com/rubocop-hq/rubocop/blob/master/manual/cops_metrics.md#metricsblocklength Metrics/BlockLength: