rack-attack/.rubocop.yml
Gonzalo Rodriguez 08861f8d17
Attempt to improve code legibility/clarity/semantics (#357)
* attempt to improve semantics for legibility

* Attempt to improve legibility by simplifying

* Make it more clear that we're calling procs/blocks here

* Enable rubocop Style/BlockDelimiters cop

* Prefer 'request' over 'req' abbreviation for legibility/clarity

* Instances of Track named 'track' not 'tracker'
2018-06-21 14:33:24 -03:00

58 lines
1.2 KiB
YAML

inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 2.2
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