From 87e8264b197dd1453df4692df8a95c802c707320 Mon Sep 17 00:00:00 2001 From: Alex Damian Negru Date: Tue, 6 Apr 2021 13:56:47 +0300 Subject: [PATCH] Add :reek to guard --- Guardfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Guardfile b/Guardfile index 5609561..8ce3009 100644 --- a/Guardfile +++ b/Guardfile @@ -15,7 +15,12 @@ guard :rspec, cmd: 'bundle exec rspec' do dsl.watch_spec_files_for(ruby.lib_files) end -guard :rubocop do +guard :rubocop, cmd: 'bundle exec rubocop' do watch(/.+\.rb$/) watch(%r{(?:.+/)?\.rubocop(?:_todo)?\.yml$}) { |m| File.dirname(m[0]) } end + +guard :reek, cmd: 'bundle exec reek' do + watch(/.+\.rb$/) + watch('.reek') +end