This commit is contained in:
Vadym Zakovinko 2024-09-02 10:07:56 -05:00 committed by GitHub
commit 2c80fcce14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 26 additions and 0 deletions

View file

@ -26,3 +26,26 @@ repos:
- id: check-added-large-files - id: check-added-large-files
- id: check-shebang-scripts-are-executable - id: check-shebang-scripts-are-executable
exclude: "\\.mustache$" exclude: "\\.mustache$"
- repo: https://github.com/Quard/license-header-checker
rev: v0.2.1
hooks:
- id: license-header-checker
files: \.(c|h|dtsi|dts|overlay|keymap)$
exclude: ^((app/boards/)|(app/tests/))
args:
- --comment-style
- "/*| *| */"
- --license
- "\\nCopyright \\(c\\) \\d{4}(-\\d{4})? The ZMK Contributors\\n\\nSPDX-License-Identifier: MIT\\n"
- --auto-populate
- .pre-commit/license_header.tmpl
- id: license-header-checker
files: (\.yaml)|(CMakeLists.txt)|(Kconfig)$
exclude: ^((app/boards/)|(app/tests/)|(\.pre-commit-config.yaml))
args:
- --comment-style
- "#"
- --license
- "\\s*Copyright \\(c\\) \\d{4}(-\\d{4})? The ZMK Contributors\\n\\s*SPDX-License-Identifier: MIT"
- --auto-populate
- .pre-commit/license_header.tmpl

View file

@ -0,0 +1,3 @@
Copyright (c) {YEAR} The ZMK Contributors
SPDX-License-Identifier: MIT