From 49e9fc8278512171f966f80810b35bc239b3e3b3 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Thu, 13 Feb 2025 05:23:00 +1000 Subject: [PATCH] [CI] pre-commit: auto add license check for Java files --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9d638399bc..7e1cbb6826 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,6 +41,15 @@ repos: - --license-filepath - .github/workflows/license-templates/LICENSE.txt - --fuzzy-match-generates-todo + - id: insert-license + name: add license for all Java files + files: \.java$ + args: + - --comment-style + - "/*|*|*/" + - --license-filepath + - .github/workflows/license-templates/LICENSE.txt + - --fuzzy-match-generates-todo - id: insert-license name: add license for all Markdown files files: \.md$