PreCommit::Checkstyle

Build Status

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

  1. Fork it ( http://github.com/secondrotation/pre-commit-checkstyle/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request