Guest User

Untitled

a guest
May 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. gem install reek flog roodi
  2.  
  3. lib/tasks/utils.rake >>
  4.  
  5. namespace :audit do
  6. desc "run all audit tasks"
  7. task :all do
  8. Rake::Task['audit:flog'].invoke
  9. Rake::Task['audit:reek'].invoke
  10. Rake::Task['audit:roodi'].invoke
  11. end
  12. desc "audit code with flog"
  13. task :flog do
  14. system 'find app/ lib/ -name \*.rb | xargs flog > log/flog.log'
  15. system "echo 'log in log/flog.log'"
  16. end
  17. desc "audit code with reek"
  18. task :reek do
  19. system 'find app/ lib/ -name \*.rb | xargs reek > log/reek.log'
  20. system "echo 'log in log/reek.log'"
  21. end
  22. desc "audit code with roodi"
  23. task :roodi do
  24. system 'find app/ lib/ -name \*.rb | xargs roodi > log/roodi.log'
  25. system "echo 'log in log/roodi.log'"
  26. end
  27. end
Add Comment
Please, Sign In to add comment