AKimZ/Get-the-dirt — pull request #21 by AKimZ (2014-02-21 19:29:52+00:00)
Title: Metrics

All of this is to comply with the bottom part of the project requirements:
Metrics
- Flog: no Controller method > 25, no Model method > 15
- Rubocop: no more than 15 code style issues
- Brakeman: no major security issues
- Code Coverage for all Controller routes, Model validations, and Model methods

To run them on your own:
- First: run "bundle update rails" and possibly "bundle"
- Flog: Run "sudo gem install flog" in the terminal, then run "find lib app/controllers \*.rb | xargs flog" and "find lib app/models \*.rb | xargs flog" inside the application directory. This will tell you how hard our methods are to test.
- Flay: Run "sudo gem install flay" in the terminal, then run "flay app/models/*.rb" and "flay app/controllers/*.rb" inside the application directory. This will tell you how redundant the code is.
- Rubocop. Run "rubocop" after bundling. This points out style issues. There are like 900 of them right now and there are supposed to be 15. Don't be scared though. This is low priority.
- Brakeman: Run "brakeman" after bundling. This points out security issues. I fixed all of them that came up on my last commit.
-Code Coverage: This is simplecov. We already have that.