-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGuardfile
More file actions
26 lines (21 loc) · 765 Bytes
/
Copy pathGuardfile
File metadata and controls
26 lines (21 loc) · 765 Bytes
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
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard :minitest do
watch(%r{^test/(.*)\/?test_(.*)\.rb$})
watch(%r{^lib/(.*/?[^/]+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^test/test_helper\.rb$}) { 'test' }
end
guard 'rake', task: 'flay' do
watch(%r{^lib/.*/?[^/]+\.rb$})
end
# guard 'rake', task: 'flog', run_on_all: true, run_on_start: true do
# # watch(%r{^lib/.*/?[^/]+\.rb$})
# end
guard :shell do
watch(%r{^lib/.*/?[^/]+\.rb$}) { |m| "bin/flog -adm #{m[0]}" }
watch(%r{^lib/.*/?[^/]+\.rb$}) { |m| "bin/reek -c config.reek --sort-by smelliness #{m[0]}" }
watch(%r{^lib/.*/?[^/]+\.rb$}) { |m| "bin/inch list #{m[0]}" }
end
guard :rubocop do
watch(%r{^lib/crypt_ident/.*?[^/]+\.rb$})
end