Do your refactoring with Guard and Preek printing the smells for you. In color!
$ gem install guard-preek
or
# Add to Gemfile
gem 'guard-preek'
or install it yourself
$ git clone [email protected]:joenas/guard-preek.git
$ cd guard-preek
$ rake install
To generate template:
$ guard init preek
guard :preek, run_all_dir: 'lib' do
watch(/lib\/(.*).rb/)
end
run_all_dir: 'lib' # Enter in guard will run Preek on 'lib'
report: :verbose # Use Preek::VerboseReport, default is QuietReport
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request