From 097e0a71a5773070ee64bb526afd203abd73e8dd Mon Sep 17 00:00:00 2001 From: Yuji Nakayama Date: Sun, 11 Jun 2017 10:11:50 +0900 Subject: [PATCH] Run RuboCop when .rubocop_todo.yml is modified Thic closes #31. --- lib/guard/rubocop/templates/Guardfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard/rubocop/templates/Guardfile b/lib/guard/rubocop/templates/Guardfile index db5f76c..95a6e7e 100644 --- a/lib/guard/rubocop/templates/Guardfile +++ b/lib/guard/rubocop/templates/Guardfile @@ -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