Poeschl / google-style-precommit-hook

A pre-commit hook which will automatically format your code with google's codestyle guidelines!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Style Pre-Commit Hook

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

Usage:

repos:
- repo: https://github.com/Poeschl/google-style-precommit-hook
  rev: <insert tag version here>
    hooks:
      - id: google-style-java

The script stores the Google formater Jar file in a folder called .cache. You will probably want to add that folder to your ignore files.

Additional config

The version of the used Google formatter can be set with arguments. The Default is shown here

- id: google-style-java
  args: [--version, 1.17.0]

About

A pre-commit hook which will automatically format your code with google's codestyle guidelines!


Languages

Language:Python 100.0%