The Stylecheck gem provides a bunch of rake tasks to run code style checks.
Currently it supports Ruby
(via rubocop
) and SCSS
(via scss-lint
). I will be adding more
languages to it very soon. Typically one would hook it up to CI to run it along with the application tests.
One shortcoming of this approach is that unlike HoundCI it runs checks on all included files, not just the
changed ones.
Check it out here.