/google-style-precommit-hook

A pre-commit hook which will automatically format your code with google java style guide

Primary LanguageShellMIT LicenseMIT

A simple pre-commit hook which will run Google's java style guide formatter for your java code!

Note: I've confirmed that this file is supported up to JDK 17 and apply AOSP(4 indent)

Usage:

repos:
- repo: https://github.com/shirohoo/google-style-precommit-hook
  rev: v1.0.0 # latest version
  hooks:
  - id: google-style-java