guard rubocop runs now after all tests, not before

This commit is contained in:
Priit Tamboom 2014-11-17 17:40:09 +02:00
parent f5ce88b548
commit b0701b7c10

View file

@ -26,7 +26,11 @@ group :red_green_refactor, halt_on_fail: true do
# Martin does not want rubocop
unless Socket.gethostname == 'martin'
guard :rubocop, cli: '--display-cop-names -c .rubocop-guard.yml -f fuubar', notification: false do
guard :rubocop,
all_on_start: false,
cli: '--display-cop-names -c .rubocop-guard.yml -f fuubar',
notification: false do
watch(%r{.+\.rb$})
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
watch(%r{(?:.+/)?\.rubocop-guard\.yml$}) { |m| File.dirname(m[0]) }