From d7084c78fb1960ebd2c18c77c7a950a0db85579a Mon Sep 17 00:00:00 2001 From: Sirz Benjie <142067137+SirzBenjie@users.noreply.github.com> Date: Tue, 2 Sep 2025 14:18:51 -0500 Subject: [PATCH] Add snippets for spdx --- .gitignore | 1 + .vscode/spdx.code-snippets | 49 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 .vscode/spdx.code-snippets diff --git a/.gitignore b/.gitignore index e52b5a76675..b0027dbfc8b 100644 --- a/.gitignore +++ b/.gitignore @@ -21,6 +21,7 @@ build *.code-workspace .vscode/* !.vscode/extensions.json +!.vscode/spdx.code-snippets .idea .DS_Store *.suo diff --git a/.vscode/spdx.code-snippets b/.vscode/spdx.code-snippets new file mode 100644 index 00000000000..080f5e51cee --- /dev/null +++ b/.vscode/spdx.code-snippets @@ -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": [ + "", + "$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 +} \ No newline at end of file