Using rubocop rails gem
This commit is contained in:
parent
6e0bf064bb
commit
f5da88520f
|
@ -1,4 +1,6 @@
|
||||||
require: rubocop-performance
|
require:
|
||||||
|
- rubocop-performance
|
||||||
|
- rubocop-rails
|
||||||
|
|
||||||
AllCops:
|
AllCops:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
|
@ -34,7 +34,7 @@ guard :brakeman, run_on_start: true, quiet: true, min_confidence: 10 do
|
||||||
watch('Gemfile')
|
watch('Gemfile')
|
||||||
end
|
end
|
||||||
|
|
||||||
guard :rubocop, cli: ['--rails'] do
|
guard :rubocop do
|
||||||
watch(%r{.+\.rb$})
|
watch(%r{.+\.rb$})
|
||||||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue