mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-10 00:09:06 +01:00
ci(java): add pre-commit hook for formatting
Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
668057d19c
commit
c6dfb95ec0
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ repos:
|
||||||
files: \.cpp$
|
files: \.cpp$
|
||||||
- id: gofmt
|
- id: gofmt
|
||||||
files: \.go$
|
files: \.go$
|
||||||
|
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
|
||||||
|
rev: v2.12.0
|
||||||
|
hooks:
|
||||||
|
- id: pretty-format-java
|
||||||
|
files: \.java$
|
||||||
|
args: [--autofix]
|
||||||
- repo: https://github.com/commitizen-tools/commitizen
|
- repo: https://github.com/commitizen-tools/commitizen
|
||||||
rev: v3.15.0
|
rev: v3.15.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
Loading…
Reference in a new issue