Skip to content

Commit

Permalink
Add :reek to guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Damian Negru committed Apr 6, 2021
1 parent a24b2ef commit 87e8264
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Guardfile
Expand Up @@ -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

0 comments on commit 87e8264

Please sign in to comment.