From e5daeb13cbd446a4fe882fb722d8d3359dd9bef9 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 11 Jan 2026 20:36:38 +0700 Subject: all: ignore symlink, COPYING, LICENSE, and LICENSES For symlink, we ignore for now. COPYING, LICENSE, and LICENSES are common files part of SPDX/reuse specifications. While at it, fix checking if path is ignored by git by passing the relative path instead of base name. --- testdata/loadReport/ok/spdxconv.report | 2 ++ testdata/scan/a/b/.gitignore | 5 +++++ testdata/scan/a/b/b1 | 2 ++ testdata/scan/a/b/c/c1 | 2 ++ testdata/scan/symdir | 1 + testdata/scan/test.go | 4 +++- 6 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 testdata/scan/a/b/.gitignore create mode 100644 testdata/scan/a/b/b1 create mode 100644 testdata/scan/a/b/c/c1 create mode 120000 testdata/scan/symdir (limited to 'testdata') diff --git a/testdata/loadReport/ok/spdxconv.report b/testdata/loadReport/ok/spdxconv.report index a83ade4..ef027b8 100644 --- a/testdata/loadReport/ok/spdxconv.report +++ b/testdata/loadReport/ok/spdxconv.report @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: CC0-1.0 +// SPDX-FileCopyrightText: 2026 M. Shulhan // comment //spdxconv:regular diff --git a/testdata/scan/a/b/.gitignore b/testdata/scan/a/b/.gitignore new file mode 100644 index 0000000..405fc5e --- /dev/null +++ b/testdata/scan/a/b/.gitignore @@ -0,0 +1,5 @@ +# SPDX-License-Identifier: GPL-3.0-only +# SPDX-FileCopyrightText: 2026 M. Shulhan + +* +!/.gitignore diff --git a/testdata/scan/a/b/b1 b/testdata/scan/a/b/b1 new file mode 100644 index 0000000..be9e78a --- /dev/null +++ b/testdata/scan/a/b/b1 @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: CC0-1.0 +// SPDX-FileCopyrightText: 2026 M. Shulhan diff --git a/testdata/scan/a/b/c/c1 b/testdata/scan/a/b/c/c1 new file mode 100644 index 0000000..be9e78a --- /dev/null +++ b/testdata/scan/a/b/c/c1 @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: CC0-1.0 +// SPDX-FileCopyrightText: 2026 M. Shulhan diff --git a/testdata/scan/symdir b/testdata/scan/symdir new file mode 120000 index 0000000..5657f6e --- /dev/null +++ b/testdata/scan/symdir @@ -0,0 +1 @@ +vendor \ No newline at end of file diff --git a/testdata/scan/test.go b/testdata/scan/test.go index 46e2bd9..a50aac4 100644 --- a/testdata/scan/test.go +++ b/testdata/scan/test.go @@ -1,3 +1,5 @@ // Copyright 2022, Shulhan . All rights reserved. // Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. \ No newline at end of file +// license that can be found in the LICENSE file. + +package spdxconv_test -- cgit v1.3