-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGuardfile
34 lines (28 loc) · 844 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# frozen_string_literal: true
clearing :on
# For Emacs
ignore(/.*flycheck_/)
ignore(/#.*#/)
guard :bundler do
watch('Gemfile')
end
group :main, halt_on_fail: true do
guard :rspec, cmd: 'bundle exec rspec', results_file: '/tmp/spec.result' do
watch(%r{spec/.+_spec.rb})
watch('spec/spec_helper.rb') { 'spec' }
watch('libraries/matchers.rb') { 'spec' }
end
guard :rubocop, cli: %(-f fu -D), notification: true do
watch(/.+\.rb$/)
watch('Rakefile')
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
end
guard :foodcritic, cli: '--epic-fail any --progress --chef-version 12', cookbook_paths: '.' do
watch(%r{attributes/.+\.rb$})
watch(%r{providers/.+\.rb$})
watch(%r{recipes/.+\.rb$})
watch(%r{resources/.+\.rb$})
watch(%r{templates/.+$})
watch('metadata.rb')
end
end