1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00

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.
This commit is contained in:
Matt Brictson 2017-04-09 16:35:06 -07:00
parent b6c812ae7a
commit 0a0a6c082e
No known key found for this signature in database
GPG key ID: 2F279EAD1F2ACFAF

View file

@ -3,6 +3,9 @@ AllCops:
DisplayStyleGuide: true DisplayStyleGuide: true
TargetRubyVersion: 2.0 TargetRubyVersion: 2.0
Lint/AmbiguousBlockAssociation:
Enabled:
false
Metrics/BlockLength: Metrics/BlockLength:
Exclude: Exclude:
- "spec/**/*" - "spec/**/*"