mirror of
https://gitlab.com/mfocko/LeetCode.git
synced 2024-11-09 15:59: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$
|
||||
- id: gofmt
|
||||
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
|
||||
rev: v3.15.0
|
||||
hooks:
|
||||
|
|
Loading…
Reference in a new issue