Quality is a tool that runs quality checks on Ruby code using cane, reek, flog and flay, and makes sure your numbers don't get any worse over time.  Just add 'rake quality' as part of your Continuous Integration.