Skip to content

Commit

Permalink
[CI] pre-commit: auto add license check for Java files (#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbampton authored Feb 12, 2025
1 parent ea4ca69 commit ae4b1c2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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$
Expand Down

0 comments on commit ae4b1c2

Please sign in to comment.