Skip to content

Instantly share code, notes, and snippets.

@andywenk
Created July 7, 2012 21:45
Show Gist options
  • Save andywenk/3068169 to your computer and use it in GitHub Desktop.
Save andywenk/3068169 to your computer and use it in GitHub Desktop.
example reek rake task
require 'reek/rake/task'
Reek::Rake::Task.new do |t|
t.source_files = "app/**/*.rb"
t.verbose = true
t.fail_on_error = false
end
namespace :analyzer do
desc "run reek and find code smells"
task :reek do
message(:info, 'Running reek and find code smells')
Rake::Task['reek'].invoke
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment