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