Skip to content

Instantly share code, notes, and snippets.

@metamn
Created May 20, 2009 16:17
Show Gist options
  • Save metamn/114918 to your computer and use it in GitHub Desktop.
Save metamn/114918 to your computer and use it in GitHub Desktop.
metric_fu application template
# metric_fu based code analysis
if yes?("Load the Basic Rails template?")
run "wget http://gist.github.com/114140.txt"
run "mv 114140.txt base_template.rb"
load_template "base_template.rb"
end
if yes?("(Re)Install metric_fu? (with roodi, flay, flog, reek, ...) ")
run "sudo gem install jscruggs-metric_fu"
end
run "touch lib/tasks/quality.rake"
file 'lib/tasks/quality.rake', <<-CODE
require 'metric_fu'
CODE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment