Browse Source

Using rubocop rails gem

remotes/origin/master
echarp 3 years ago
parent
commit
f5da88520f
  1. 4
      .rubocop.yml
  2. 2
      Guardfile

4
.rubocop.yml

@ -1,4 +1,6 @@
require: rubocop-performance
require:
- rubocop-performance
- rubocop-rails
AllCops:
Exclude:

2
Guardfile

@ -34,7 +34,7 @@ guard :brakeman, run_on_start: true, quiet: true, min_confidence: 10 do
watch('Gemfile')
end
guard :rubocop, cli: ['--rails'] do
guard :rubocop do
watch(%r{.+\.rb$})
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end

Loading…
Cancel
Save