From c6dfb95ec044ed835426807451a2e66f00a36f64 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sat, 2 Mar 2024 20:59:59 +0100 Subject: [PATCH] ci(java): add pre-commit hook for formatting Signed-off-by: Matej Focko --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d8f533c..951baca 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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: