Created
July 7, 2012 21:45
-
-
Save andywenk/3068169 to your computer and use it in GitHub Desktop.
example reek rake task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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