Guard::RubyCritic is a tool that detects and reports smells in Ruby code in real-time.
Inspired by RuboCop, Rails Best Practices and Code Climate, Ruby Critic aims to better help you refactor your code. By making use of Ruby's rich ecosystem of code metrics tools, Ruby Critic generates high-quality visualizations and insightful code quality reports.
Add this line to your application's Gemfile:
gem "guard-rubycritic"
And then execute:
$ bundle
Next, generate a default Guardfile
in your root directory:
$ guard init rubycritic
Change your Guardfile
to your heart's content and simply run guard
to get instant feedback on your code quality:
$ guard