linting teh hamels

This commit is contained in:
2015-10-03 08:57:06 -05:00
parent 8cdb204a94
commit c1f872e9a1
9 changed files with 57 additions and 36 deletions

View File

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