From d5a0ebbca54833c55e3759d191e07d5214cc07c6 Mon Sep 17 00:00:00 2001 From: Albert Arvidsson Date: Tue, 27 Mar 2018 16:21:06 +0200 Subject: [PATCH] Disable Lint/AmbiguousBlockAssociation for specs Lint/AmbiguousBlockAssociation: Parenthesize the param change { ... } to make sure that the block will be associated with the change method call. https://github.com/bbatsov/rubocop/issues/4222 --- ruby/rubocop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ruby/rubocop.yml b/ruby/rubocop.yml index 5499d0a..c9cfb6a 100644 --- a/ruby/rubocop.yml +++ b/ruby/rubocop.yml @@ -22,6 +22,10 @@ Layout/IndentHash: Layout/SpaceAroundEqualsInParameterDefault: EnforcedStyle: no_space +Lint/AmbiguousBlockAssociation: + Exclude: + - "spec/**/*" + Metrics/LineLength: Exclude: - "config/**/*"