Using rubocop rails gem

This commit is contained in:
echarp 2019-06-25 22:18:43 +02:00
parent 6e0bf064bb
commit f5da88520f
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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