You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sedona.apache.org by ji...@apache.org on 2025/05/30 16:20:05 UTC
(sedona) 14/35: [CI] pre-commit(insert-license): fix bug in comment markers for .c and .h (#1884)
This is an automated email from the ASF dual-hosted git repository.
jiayu pushed a commit to branch prepare-1.7.2
in repository https://gitbox.apache.org/repos/asf/sedona.git
commit ff6ed393dec559a129e2eda17edaacdef7e4e770
Author: John Bampton <jb...@users.noreply.github.com>
AuthorDate: Fri Mar 28 14:59:25 2025 +1000
[CI] pre-commit(insert-license): fix bug in comment markers for .c and .h (#1884)
---
.pre-commit-config.yaml | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 00a6c1e621..a1defa0e6c 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -33,11 +33,20 @@ repos:
rev: v1.5.5
hooks:
- id: insert-license
- name: add license for all .c and .h files
- files: \.(c|h)$
+ name: add license for all .c files
+ files: \.c$
args:
- --comment-style
- - "/*|*|*/"
+ - "/*| *| */"
+ - --license-filepath
+ - .github/workflows/license-templates/LICENSE.txt
+ - --fuzzy-match-generates-todo
+ - id: insert-license
+ name: add license for all .h files
+ files: \.h$
+ args:
+ - --comment-style
+ - "/*| *| */"
- --license-filepath
- .github/workflows/license-templates/LICENSE.txt
- --fuzzy-match-generates-todo