Skip to content
A pre-commit hook which will automatically format your code with google's codestyle guidelines!
Shell
Branch: master
Clone or download
Pull request Compare This branch is 1 commit ahead of maltzj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitattributes
.gitignore
.pre-commit-hooks.yaml
LICENSE
README.md
format-code.sh
google-java-format.sh

README.md

A handy pre-commit hook which will run Google's java code style formatter for you on your code!

Usage:

repos:
- repo: https://github.com/maltzj/google-style-precommit-hook
  sha: b7e9e7fcba4a5aea463e72fe9964c14877bd8130
    hooks:
      - id: google-style-java

Note: this file stores Google's code style formatter jar in a .cache/ directory so that it doesn't need to be re-downloaded each time. You will probably want to add .cache/ to the .gitignore file of the project which uses this hook.

You can’t perform that action at this time.