diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-07 14:36:59 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-07 14:36:59 +0700 |
| commit | 161049a3996c574d521d6d3df55998028eb111c0 (patch) | |
| tree | 5fbd77bdd7910dcead3568a9bfabf18515bfa14c /testdata | |
| parent | 08a4462c66fab99e5e66b465f053291c438dd0e0 (diff) | |
| download | spdxconv-161049a3996c574d521d6d3df55998028eb111c0.tar.xz | |
all: exclude file that have ".license" file
If the file X has another file named "X.license" in the same directory,
exclude it for being processed.
The ".license" is SPDX specific file that contains only SPDX identifiers.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/loadConfig/config_exists/spdxconv.cfg | 2 | ||||
| -rw-r--r-- | testdata/scan/dummy | 2 | ||||
| -rw-r--r-- | testdata/scan/dummy.license | 2 |
3 files changed, 5 insertions, 1 deletions
diff --git a/testdata/loadConfig/config_exists/spdxconv.cfg b/testdata/loadConfig/config_exists/spdxconv.cfg index e4edf89..669d38a 100644 --- a/testdata/loadConfig/config_exists/spdxconv.cfg +++ b/testdata/loadConfig/config_exists/spdxconv.cfg @@ -11,4 +11,4 @@ delete_line_pattern = "^(//+|#+)*\\s*$" 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+(?<holder>.*)\\s+<*(?<email>.*)>.*$" diff --git a/testdata/scan/dummy b/testdata/scan/dummy new file mode 100644 index 0000000..73fd7c8 --- /dev/null +++ b/testdata/scan/dummy @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: GPL-3.0-only +// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info> diff --git a/testdata/scan/dummy.license b/testdata/scan/dummy.license new file mode 100644 index 0000000..73fd7c8 --- /dev/null +++ b/testdata/scan/dummy.license @@ -0,0 +1,2 @@ +// SPDX-License-Identifier: GPL-3.0-only +// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info> |
