PreCommit::Checkstyle
Checkstyle linter plugin for pre-commit. Useful for linting Java code.
Installation
Add this line to your application's Gemfile:
gem 'pre-commit-checkstyle'
And then execute:
$ bundle
Or install it yourself as:
$ gem install pre-commit-checkstyle
Usage
Make sure the gem is installed and setup the check in pre-commit with:
pre-commit enable git checks checkstyle
OR
pre-commit enable yaml checks checkstyle
Contributing
- Fork it ( http://github.com/secondrotation/pre-commit-checkstyle/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 new Pull Request