stop duplicate minitest runs
This commit is contained in:
12
Guardfile
12
Guardfile
@ -72,6 +72,7 @@ end
|
||||
|
||||
# ESLint
|
||||
guard :shell, all_on_start: true do
|
||||
# TODO: Annoyingly, all files are linted twice on start/full runs. Why?
|
||||
watch %r{app/assets/javascripts/*/.*} do |file|
|
||||
system %(echo "ESLint:\033[32m #{file[0]}\033[0m")
|
||||
system %(eslint #{file[0]})
|
||||
@ -86,8 +87,11 @@ guard :rubocop, cli: %w(-D -S) do
|
||||
end
|
||||
|
||||
guard 'brakeman', run_on_start: true, quiet: true do
|
||||
watch(%r{^app/.+\.(erb|haml|rhtml|rb)$})
|
||||
watch(%r{^config/.+\.rb$})
|
||||
watch(%r{^lib/.+\.rb$})
|
||||
watch('Gemfile')
|
||||
## Lets not watch files for brakeman,
|
||||
## just scan on guard start, and full runs.
|
||||
#
|
||||
# watch(%r{^app/.+\.(erb|haml|rhtml|rb)$})
|
||||
# watch(%r{^config/.+\.rb$})
|
||||
# watch(%r{^lib/.+\.rb$})
|
||||
# watch('Gemfile')
|
||||
end
|
||||
|
Reference in New Issue
Block a user