bin/rake stats
- Ruby vs JS
- Controllers vs Models
gem install erderd
- Unit Test
- Integration Tests
Rubocop
rubocop -a (fix automatically small things such as styling, make the other problems more visible)
Check the complexity first, good starting point
rubocop --only AbcSize,ClassLength
rubocop --only AbcSize,ClassLength --f html > complexity.html`(to get an HTML report)
Brakeman (security)
gem install brakeman
brakemanThis is security - should end up with an empty list.
Precommit hook
If you like getting message/forcing you to keep on quality, enforce a git precommit hook (ex: run quality)
- It's a process
- Boy scout rule
- Don't get good, get better
CodeClimate
I would recommend trying CC out (20$ a month)
Why:
- Good stats
- Trends
- Churn vs problems (ie: identify where you have problems AND that changes a lot)
rack-profiler & usage
- Get a paying plan on Heroku
- Get backups (autobus)
- Get logentries and set alerts
- Create a separated stating environment
- How to copy data from prod to staging and local using pg:pull & pg:push (careful!)