rack-attack/.rubocop.yml
Gonzalo Rodriguez d5e585680f
Fix CircleCI rubocop runs by excluding vendor/ folder
rubocop default configuration exclude vendor/ folder, but in order to
get the default we need to merge arrays, given that we are also setting
Exclude
2018-06-20 10:29:19 -03:00

49 lines
634 B
YAML

inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 2.2
DisabledByDefault: true
Exclude:
- "examples/instrumentation.rb"
Bundler:
Enabled: true
Gemspec:
Enabled: true
Layout:
Enabled: true
Lint:
Enabled: true
Naming:
Enabled: true
Exclude:
- "lib/rack/attack/path_normalizer.rb"
Performance:
Enabled: true
Security:
Enabled: true
Lint:
Enabled: true
Style/BracesAroundHashParameters:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
Style/RedundantFreeze:
Enabled: true
# TODO
# Remove cop disabling and fix offenses
Lint/HandleExceptions:
Enabled: false