diff options
| author | Shulhan <ms@kilabit.info> | 2026-01-15 14:01:48 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2026-01-15 14:01:48 +0700 |
| commit | e662e3bc3c4aadf15a360495deaa86939ce84980 (patch) | |
| tree | 6c1476d2aa3cae1af9d833c74bbda99945115ec8 /testdata | |
| parent | 9a34a0e949a04c4b885314222e46c918a6f9f2dc (diff) | |
| download | spdxconv-e662e3bc3c4aadf15a360495deaa86939ce84980.tar.xz | |
all: add match-file-pattern for common files
The Makefile, go.mod, and go.sum are known file names.
Diffstat (limited to 'testdata')
| -rw-r--r-- | testdata/scan/Makefile | 1 | ||||
| -rw-r--r-- | testdata/scan/go.mod | 1 | ||||
| -rw-r--r-- | testdata/scan/go.sum | 1 | ||||
| -rw-r--r-- | testdata/scan/spdxconv.cfg | 12 |
4 files changed, 12 insertions, 3 deletions
diff --git a/testdata/scan/Makefile b/testdata/scan/Makefile new file mode 100644 index 0000000..996cee9 --- /dev/null +++ b/testdata/scan/Makefile @@ -0,0 +1 @@ +# Empty. diff --git a/testdata/scan/go.mod b/testdata/scan/go.mod new file mode 100644 index 0000000..2bd6dce --- /dev/null +++ b/testdata/scan/go.mod @@ -0,0 +1 @@ +// Empty. diff --git a/testdata/scan/go.sum b/testdata/scan/go.sum new file mode 100644 index 0000000..2bd6dce --- /dev/null +++ b/testdata/scan/go.sum @@ -0,0 +1 @@ +// Empty. diff --git a/testdata/scan/spdxconv.cfg b/testdata/scan/spdxconv.cfg index 082d482..afbdb31 100644 --- a/testdata/scan/spdxconv.cfg +++ b/testdata/scan/spdxconv.cfg @@ -12,10 +12,18 @@ pattern = "^.*\\.(adoc|asciidoc|c|cc|cpp|cs|dart|go|h|hh|hpp|java|js|jsx|jsonc|k prefix = "//" [match-file-comment] +pattern = "^(.*/)?go.mod$" +prefix = "//" + +[match-file-comment] pattern = "^.*\\.(aff|bash|csh|dockerfile|env|gitignore|hcl|ipynb|make|pl|pm|py|ps1|rb|sh|tf|yaml|yml|zsh)$" prefix = "#" [match-file-comment] +pattern = "^(.*/)?[Mm]akefile$" +prefix = "#" + +[match-file-comment] pattern = "^.*\\.(css)$" prefix = "/*" suffix = "*/" @@ -42,10 +50,8 @@ prefix = "%" [match-file-comment] pattern = "^.*\\.(apk|app|bz2|csv|doc|docx|exe|gif|gz|jpeg|jpg|json|pdf|png|ppt|pptx|svg|svgz|tar|tgz|xls|xlsx|zip)$" -# File name that match with this pattern will have the ".license" file -# created. [match-file-comment] -pattern = "^.*\\.(apk|app|bz2|csv|doc|docx|exe|gif|gz|jpeg|jpg|json|pdf|png|ppt|pptx|svg|svgz|tar|tgz|xls|xlsx|zip)$" +pattern = "^(.*/)?go.sum$" [match-license] pattern = "^(//+|#+|/\\*+|<!--+|--+)?\\s*(.*)governed by a BSD-style(.*)$" |
