Skip to content

Commit

Permalink
Run RuboCop when .rubocop_todo.yml is modified
Browse files Browse the repository at this point in the history
Thic closes #31.
  • Loading branch information
yujinakayama committed Jun 11, 2017
1 parent 3a17bca commit 097e0a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/guard/rubocop/templates/Guardfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
guard :rubocop do
watch(%r{.+\.rb$})
watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) }
end

0 comments on commit 097e0a7

Please sign in to comment.