aboutsummaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-08 19:08:14 +0700
committerShulhan <ms@kilabit.info>2026-01-08 20:40:27 +0700
commita10b07ddbd21c7725df43f3e37b9d7709fbe66b7 (patch)
tree0d2704626e6b489658a1a068f85a8942c0a07fb6 /testdata
parent496c812f6e14b77408b71f7a35a3d755b8bbbf36 (diff)
downloadspdxconv-a10b07ddbd21c7725df43f3e37b9d7709fbe66b7.tar.xz
cmd/spdxconv: implement "init" command
The init command create the spdxconv configuration file in the current directory.
Diffstat (limited to 'testdata')
-rw-r--r--testdata/loadConfig/config_exists/spdxconv.cfg11
1 files changed, 5 insertions, 6 deletions
diff --git a/testdata/loadConfig/config_exists/spdxconv.cfg b/testdata/loadConfig/config_exists/spdxconv.cfg
index 9af4d1d..c1a11e5 100644
--- a/testdata/loadConfig/config_exists/spdxconv.cfg
+++ b/testdata/loadConfig/config_exists/spdxconv.cfg
@@ -1,5 +1,5 @@
-# SPDX-License-Identifier: GPL-3.0-only
-# SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info>
+# SPDX-License-Identifier: CC0-1.0
+# SPDX-FileCopyrightText: 2026 M. Shulhan <ms@kilabit.info>
[default]
license_identifier = GPL-3.0-only
@@ -7,11 +7,10 @@ file_copyright_text = Author <author@email.info>
max_line_match = 10
[match-license]
-pattern = "^(//+|#+)*\\s+(.*)governed by a BSD-style(.*)$"
+pattern = "^(//+|#+)\\s+(.*)governed by a BSD-style(.*)$"
license_identifier = BSD-3-Clause
delete_match = true
-delete_line_pattern = "^(//+|#+)*\\s*$"
-delete_line_pattern = "^(//+|#+)*\\s+license that(.*)$"
+delete_line_pattern = "^(//+|#+)\\s+license that(.*)$"
[match-copyright]
-pattern = "^(//+|#+)*\\s+Copyright\\s+(?<year>\\d{4}),?\\s+(?<holder>.*)\\s+<*(?<email>.*)>.*$"
+pattern = "^(//+|#+)\\s+Copyright\\s+(?<year>\\d{4}),?\\s+(?<author>.*)\\s+<*(?<contact>.*)>.*$"