diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-05 22:35:40 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-06 00:27:33 +0700 |
| commit | 2cda75bc9385da199b4db5f6cc2692bfd694fcf1 (patch) | |
| tree | 75841e8ab18c3838256461e3a8b8c66c5d844ad5 /testdata/scan | |
| download | spdxconv-2cda75bc9385da199b4db5f6cc2692bfd694fcf1.tar.xz | |
spdxconv: tool to convert license and copyright to SPDX format
This is the initial implementation, work in progress, with the following
functions,
* loading the spdxconv.cfg file
* scanning list of files to be converted
* detect .git repository and exclude files ignored by .gitignore
No conversion logic is implemented yet.
Diffstat (limited to 'testdata/scan')
| -rw-r--r-- | testdata/scan/.gitignore | 4 | ||||
| -rw-r--r-- | testdata/scan/test.go | 3 | ||||
| -rw-r--r-- | testdata/scan/test.html | 5 | ||||
| -rw-r--r-- | testdata/scan/test.sh | 3 |
4 files changed, 15 insertions, 0 deletions
diff --git a/testdata/scan/.gitignore b/testdata/scan/.gitignore new file mode 100644 index 0000000..746a46e --- /dev/null +++ b/testdata/scan/.gitignore @@ -0,0 +1,4 @@ +node_modules/ +*.html +!test.html +vendor/
\ No newline at end of file diff --git a/testdata/scan/test.go b/testdata/scan/test.go new file mode 100644 index 0000000..46e2bd9 --- /dev/null +++ b/testdata/scan/test.go @@ -0,0 +1,3 @@ +// 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 diff --git a/testdata/scan/test.html b/testdata/scan/test.html new file mode 100644 index 0000000..da2491e --- /dev/null +++ b/testdata/scan/test.html @@ -0,0 +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 diff --git a/testdata/scan/test.sh b/testdata/scan/test.sh new file mode 100644 index 0000000..8fd6949 --- /dev/null +++ b/testdata/scan/test.sh @@ -0,0 +1,3 @@ +# 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 |
