google-style-precommit-hook icon indicating copy to clipboard operation
google-style-precommit-hook copied to clipboard

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

Results 19 google-style-precommit-hook issues
Sort by recently updated
recently updated
newest added

https://github.com/google/google-java-format/releases This Tool and the Pre-Commit Hook is not ready for JDK 17 - please just replace 1.7 with 1.15.0, i would prefer not to have to make my own...

The current example does not work properly with the latest version of pre-commit, sha was replaced by rev. Also updated to the latest version of the repository.

pre-commit passes a list of files according the exclusion and other rules to the script. Currently `format-code.sh` doesn't respect the list, and creates its own list of files. This was...

Changes 1. Update google format to 1.14.0 2. Add `add-opens` as mentioned [here](https://github.com/google/google-java-format/issues/787#issuecomment-1200762464).

* Update to latest `google-java-format-1.10.0-all-deps.jar` to support JDK 16 language features. * Update `java` command to comply with [JEP 261: Module System](https://openjdk.java.net/jeps/261) updates to run with strict encapsulation by default.

The readme includes instructions: ```yaml repos: - repo: https://github.com/maltzj/google-style-precommit-hook sha: b7e9e7fcba4a5aea463e72fe9964c14877bd8130 hooks: - id: google-style-java ``` There is no hash `b7e9e7fcba4a5aea463e72fe9964c14877bd8130` in this projects git history. ``` git fetch --all...

https://github.com/maltzj/google-style-precommit-hook/blob/95c2f5632710e095220e22cc1a4e1a1451abf75f/format-code.sh#L11 $(command) is a bash or other new shell issue. On many systems sh is a posix limited shell. This issue is fixed in https://github.com/maltzj/google-style-precommit-hook/pull/17

Not sure if this project is still being maintained, but for me I copied the script over to the pre-commit script and it works almost exactly as I need. The...

Analogous to #22 : * Update to latest `google-java-format-1.12.0-all-deps.jar` to support JDK 17 language features. * Update `java` command to comply with [JEP 261: Module System](https://openjdk.java.net/jeps/261) updates to run with...