linting teh hamels
This commit is contained in:
16
Guardfile
16
Guardfile
@ -15,12 +15,6 @@
|
||||
#
|
||||
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
||||
|
||||
guard :rubocop do
|
||||
watch(/.+\.rb$/)
|
||||
watch(/Rakefile/)
|
||||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
||||
end
|
||||
|
||||
guard :minitest do
|
||||
watch(%r{^test/test_helper\.rb$}) { 'test' }
|
||||
watch(%r{^test/(.*)\/?(.*)_test\.rb$})
|
||||
@ -42,6 +36,16 @@ guard 'livereload' do
|
||||
end
|
||||
end
|
||||
|
||||
guard :rubocop do
|
||||
watch(/.+\.rb$/)
|
||||
watch(/Rakefile/)
|
||||
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
|
||||
end
|
||||
|
||||
guard :scsslint do
|
||||
watch(%r{app/assets/.+\.(scss)})
|
||||
end
|
||||
|
||||
guard :shell do
|
||||
watch(%r{app/views/.*\.haml}) { |m| `haml-lint --color #{m[0]}` }
|
||||
end
|
||||
|
Reference in New Issue
Block a user