This is quick https://github.com/m4i/rubocop-git port to Reek.
Reek for git diff.
Add this line to your application's Gemfile:
gem 'reek-git', github: 'necolt/reek-git'
And then execute:
$ bundle
Usage: reek-git [options] [[commit] commit]
-r, --require FILE Require Ruby file
--cached git diff --cached
--staged synonym of --cached
- Fork it ( https://github.com/necolt/reek-git/fork )
- 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 a new Pull Request