From 0a0a6c082eca0c7bf895070a7ba7c05c6ba22326 Mon Sep 17 00:00:00 2001 From: Matt Brictson Date: Sun, 9 Apr 2017 16:35:06 -0700 Subject: [PATCH] Disable unhelpful RuboCop rule RuboCop's `Lint/AmbiguousBlockAssociation` rule forbids this construct: ```ruby set :foo, -> { "bar" } ``` It apparently wants: ```ruby set(:foo, -> { "bar" }) ``` This goes against the grain of Capistrano's DSL, so disable it. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 4f375994..500e71a7 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -3,6 +3,9 @@ AllCops: DisplayStyleGuide: true TargetRubyVersion: 2.0 +Lint/AmbiguousBlockAssociation: + Enabled: + false Metrics/BlockLength: Exclude: - "spec/**/*"