TD Critic
Critic
-- One who forms and expresses judgments of the merits, faults, value, or truth of a matter.
TD Critic is a gem that specializes in judging your coding style.
Installation
Add this to your application's Gemfile:
gem 'td_critic'
If you want to make sure that your project's build won't be broken accidentally by rubocop
update, lock rubocop
to certain version:
gem 'rubocop', '0.58.2'
gem 'rubocop-rspec', '1.28.0'
That is important especially for GEMs, where Gemfile.lock
isn't committed to the repository.
Usage
Add the following line to your rubocop config
inherit_gem:
td_critic: rubocop.yml
You can use the rubocop
rake task to run rubocop on only the recently changed files (by Yury Lebedev)
bundle exec rake rubocop