Skip to content

Commit ae4b1c2

Browse files
authored
[CI] pre-commit: auto add license check for Java files (#1807)
1 parent ea4ca69 commit ae4b1c2

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,15 @@ repos:
4141
- --license-filepath
4242
- .github/workflows/license-templates/LICENSE.txt
4343
- --fuzzy-match-generates-todo
44+
- id: insert-license
45+
name: add license for all Java files
46+
files: \.java$
47+
args:
48+
- --comment-style
49+
- "/*|*|*/"
50+
- --license-filepath
51+
- .github/workflows/license-templates/LICENSE.txt
52+
- --fuzzy-match-generates-todo
4453
- id: insert-license
4554
name: add license for all Markdown files
4655
files: \.md$

0 commit comments

Comments
 (0)