Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gem install reek flog roodi
- lib/tasks/utils.rake >>
- namespace :audit do
- desc "run all audit tasks"
- task :all do
- Rake::Task['audit:flog'].invoke
- Rake::Task['audit:reek'].invoke
- Rake::Task['audit:roodi'].invoke
- end
- desc "audit code with flog"
- task :flog do
- system 'find app/ lib/ -name \*.rb | xargs flog > log/flog.log'
- system "echo 'log in log/flog.log'"
- end
- desc "audit code with reek"
- task :reek do
- system 'find app/ lib/ -name \*.rb | xargs reek > log/reek.log'
- system "echo 'log in log/reek.log'"
- end
- desc "audit code with roodi"
- task :roodi do
- system 'find app/ lib/ -name \*.rb | xargs roodi > log/roodi.log'
- system "echo 'log in log/roodi.log'"
- end
- end
Add Comment
Please, Sign In to add comment