diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-11 20:36:38 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-11 21:36:20 +0700 |
| commit | e5daeb13cbd446a4fe882fb722d8d3359dd9bef9 (patch) | |
| tree | 9a160c1f93e5f60852427b5c3e831b944c311aa5 /testdata | |
| parent | c3fbfbeab5605e3e2d31dc9a8dd95e9ca7139145 (diff) | |
| download | spdxconv-e5daeb13cbd446a4fe882fb722d8d3359dd9bef9.tar.xz | |
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.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/loadReport/ok/spdxconv.report | 2 | ||||
| -rw-r--r-- | testdata/scan/a/b/.gitignore | 5 | ||||
| -rw-r--r-- | testdata/scan/a/b/b1 | 2 | ||||
| -rw-r--r-- | testdata/scan/a/b/c/c1 | 2 | ||||
| l--------- | testdata/scan/symdir | 1 | ||||
| -rw-r--r-- | testdata/scan/test.go | 4 |
6 files changed, 15 insertions, 1 deletions
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 <ms@kilabit.info> // 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 <ms@kilabit.info> + +* +!/.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 <ms@kilabit.info> 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 <ms@kilabit.info> 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 <ms@kilabit.info>. 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 |
