Add snippets for spdx

This commit is contained in:
Sirz Benjie 2025-09-02 14:18:51 -05:00
parent 35f5fe4fc3
commit d7084c78fb
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E
2 changed files with 50 additions and 0 deletions

1
.gitignore vendored
View File

@ -21,6 +21,7 @@ build
*.code-workspace
.vscode/*
!.vscode/extensions.json
!.vscode/spdx.code-snippets
.idea
.DS_Store
*.suo

49
.vscode/spdx.code-snippets vendored Normal file
View File

@ -0,0 +1,49 @@
/*
* SPDX-FileCopyrightText: 2025 Pagefault Games
* SPDX-FileContributor: SirzBenjie
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
{
// REUSE-IgnoreStart
"Add SPDX header (/* comments )": {
"scope": "javascript,typescript,css,glsl,jsonc",
"prefix": "SPDX",
"body": [
"/*",
" * SPDX-FileCopyrightText: ${CURRENT_YEAR} Pagefault Games",
" *",
" * SPDX-License-Identifier: AGPL-3.0-only",
" */",
"$0"
],
"description": "AGPL-3.0-only SPDX header (c style comments)",
},
"Add SPDX header (<!--> comments)": {
"scope": "html,markdown",
"prefix": "SPDX",
"body": [
"<!--",
"SPDX-FileCopyrightText: ${CURRENT_YEAR} Pagefault Games",
"SPDX-License-Identifier: AGPL-3.0-only",
"-->",
"$0"
],
"description": "AGPL-3.0-only SPDX header (html style comments)",
},
"Add SPDX header (# comments) ": {
"prefix": "SPDX",
"scope": "powershell,python,yaml,shellscript,ignore,toml,git,gitattributes",
"body": [
"# SPDX-FileCopyrightText: ${CURRENT_YEAR} Pagefault Games",
"#",
"# SPDX-License-Identifier: AGPL-3.0-only",
"$0"
],
"description": "AGPL-3.0-only SPDX header (# style comments)",
}
// REUSE-IgnoreEnd
}