Guard::RubyCritic is a tool that uses RubyCritic to detect and report smells in Ruby code in real-time.
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 start it with the following command:
$ guard
Each time you save a file, that file will be analysed and its report will be available at YOUR_PROJECT_ROOT/tmp/rubycritic/current_file.html
.
See Guard::RubyCritic's contributing guidelines about how to proceed.