mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
0a0a6c082e
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.
61 lines
1.2 KiB
YAML
61 lines
1.2 KiB
YAML
AllCops:
|
|
DisplayCopNames: true
|
|
DisplayStyleGuide: true
|
|
TargetRubyVersion: 2.0
|
|
|
|
Lint/AmbiguousBlockAssociation:
|
|
Enabled:
|
|
false
|
|
Metrics/BlockLength:
|
|
Exclude:
|
|
- "spec/**/*"
|
|
- "lib/**/*.rake"
|
|
Style/BarePercentLiterals:
|
|
EnforcedStyle: percent_q
|
|
Style/ClassAndModuleChildren:
|
|
Enabled: false
|
|
Style/DoubleNegation:
|
|
Enabled: false
|
|
Style/FileName:
|
|
Exclude:
|
|
- "Dangerfile"
|
|
Style/IndentHeredoc:
|
|
Enabled: false
|
|
Style/SpaceAroundEqualsInParameterDefault:
|
|
EnforcedStyle: no_space
|
|
Style/StringLiterals:
|
|
EnforcedStyle: double_quotes
|
|
Style/TrivialAccessors:
|
|
AllowPredicates: true
|
|
Style/PercentLiteralDelimiters:
|
|
Enabled: false
|
|
Style/SingleLineBlockParams:
|
|
Enabled: false
|
|
Style/ModuleFunction:
|
|
Enabled: false
|
|
|
|
# Enable someday
|
|
Style/Documentation:
|
|
Enabled: false
|
|
|
|
# Needs refactors
|
|
Metrics/PerceivedComplexity:
|
|
Enabled: false
|
|
Metrics/CyclomaticComplexity:
|
|
Enabled: false
|
|
Metrics/MethodLength:
|
|
Enabled: false
|
|
Style/PredicateName:
|
|
Enabled: false
|
|
Metrics/LineLength:
|
|
Enabled: false
|
|
Metrics/AbcSize:
|
|
Enabled: false
|
|
Style/PerlBackrefs:
|
|
Enabled: false
|
|
Metrics/ClassLength:
|
|
Enabled: false
|
|
Metrics/ModuleLength:
|
|
Enabled: false
|
|
Style/AccessorMethodName:
|
|
Enabled: false
|