mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
Enforce every rack-attack contributor runs same rubocop version
This commit is contained in:
parent
9faf6cd32b
commit
d01c3e61d4
2 changed files with 2 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ Any of the following is greatly appreciated:
|
|||
As an effort to keep the codebase consistent, we encourage the use of [Rubocop](https://github.com/bbatsov/rubocop).
|
||||
This tool helps us abstract most of the decisions we have to make when coding.
|
||||
|
||||
To check your code, simply type `rubocop` in the shell. The resulting output are all the offenses currently present in the code.
|
||||
To check your code, simply type `bundle exec rubocop` in the shell. The resulting output are all the offenses currently present in the code.
|
||||
|
||||
It is highly recommended that you integrate a linter with your editor.
|
||||
This way you receive real time feedback about your code. Most editors have some kind of plugin for that.
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ Gem::Specification.new do |s|
|
|||
s.add_development_dependency 'rack-test'
|
||||
s.add_development_dependency 'rake'
|
||||
s.add_development_dependency 'redis-activesupport'
|
||||
s.add_development_dependency "rubocop", "0.55.0"
|
||||
s.add_development_dependency "timecop"
|
||||
|
||||
# Need to explicitly depend on guard because guard-minitest doesn't declare
|
||||
|
|
|
|||
Loading…
Reference in a new issue