-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.lintstagedrc.yml
More file actions
31 lines (30 loc) · 1.62 KB
/
.lintstagedrc.yml
File metadata and controls
31 lines (30 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# SPDX-FileCopyrightText: Copyright © 2024-2026 Caleb Cushing
#
# SPDX-License-Identifier: CC0-1.0
# Software
"*.java":
- "reuse annotate --license 'GPL-3.0-or-later WITH Classpath-exception-2.0' --copyright 'Caleb Cushing' --copyright-prefix spdx-string-symbol --merge-copyrights"
- &prettier "prettier --cache --ignore-unknown --write"
# Build Scripts
"*.gradle.kts":
- "reuse annotate --license 'MIT' --copyright 'Caleb Cushing' --copyright-prefix spdx-string-symbol --merge-copyrights --skip-unrecognised"
- ktlint --format
"Makefile":
- "reuse annotate --license 'MIT' --copyright 'Caleb Cushing' --copyright-prefix spdx-string-symbol --merge-copyrights"
"{.config/git/hooks/*,*.sh}":
- "reuse annotate --license 'MIT' --copyright 'Caleb Cushing' --copyright-prefix spdx-string-symbol --merge-copyrights --style python"
- *prettier
# Documentation
"(*.md|*.adoc)":
- "reuse annotate --license 'CC-BY-NC-4.0' --copyright 'Caleb Cushing' --copyright-prefix spdx-string-symbol --merge-copyrights"
- *prettier
# Trivial files
"(*.xml|*.yml|*.yaml|*ignore|*.toml|*.json5|*.js|.editorconfig|.gitattributes|.mailmap)":
- "reuse annotate --license 'CC0-1.0' --copyright 'Caleb Cushing' --copyright-prefix spdx-string-symbol --merge-copyrights"
- *prettier
"*.properties": # Tools such as IntelliJ IDEA do not treat .properties files as UTF-8 by default
- "reuse annotate --license 'CC0-1.0' --copyright 'Caleb Cushing' --merge-copyrights"
- *prettier
# Python requirements
"requirements.*":
- "reuse annotate --license 'CC0-1.0' --copyright 'Caleb Cushing' --copyright-prefix spdx-string-symbol --merge-copyrights --style python"