rack-attack/.rubocop.yml
2018-06-28 17:08:15 -03:00

58 lines
1.2 KiB
YAML

inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 2.3
DisabledByDefault: true
Exclude:
- "examples/instrumentation.rb"
# Remove the following line once we are able to make bundler install gems to <PROJECT_ROOT>/vendor/bundle instead
# of <PROJECT_ROOT>/gemfiles/vendor/bundle during TravisCI builds. The reason that happens for now is because
# bundler 1.x only installs relative to the Gemfile (which during CI builds is always one inside gemfiles/ folder)
# instead of the CWD. Bundler 2.x will add support to install relative to CWD
# (see https://github.com/bundler/bundler/pull/5803).
- "gemfiles/vendor/**/*"
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/BlockDelimiters:
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