aboutsummaryrefslogtreecommitdiff
path: root/testdata/Apply_test.txt
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-01-15 21:15:00 +0700
committerShulhan <ms@kilabit.info>2026-01-15 21:23:48 +0700
commitaa7f2df15e91f5c94807247228cf82e18fe03887 (patch)
tree2587dda62755cc69bb785786dd2c80214a23f679 /testdata/Apply_test.txt
parent32e4ea9ddf0c2d37f00fa81a4fb1dfe67420b8fe (diff)
downloadspdxconv-aa7f2df15e91f5c94807247228cf82e18fe03887.tar.xz
all: allow multiple pattern in match-file-comment
This makes the configuration more concise where pattern can be split into multi lines. While at it, add more pattern to match-file-comment.
Diffstat (limited to 'testdata/Apply_test.txt')
-rw-r--r--testdata/Apply_test.txt19
1 files changed, 15 insertions, 4 deletions
diff --git a/testdata/Apply_test.txt b/testdata/Apply_test.txt
index a6723e2..068a796 100644
--- a/testdata/Apply_test.txt
+++ b/testdata/Apply_test.txt
@@ -13,11 +13,17 @@ copyright_year = 2026
file_copyright_text = M. Shulhan <ms@kilabit.info>
[match-file-comment]
-pattern = "^.*\\.(adoc|asciidoc|c|cc|cpp|cs|dart|go|h|hh|hpp|java|js|jsx|jsonc|kt|kts|php|rs|sass|scss|swift|ts|tsx)$"
+pattern = "^.*\\.(adoc|asciidoc|c|cc|cpp|cs|dart|go|h|hh|hpp|java|js|jsx)$"
+pattern = "^.*\\.(jsonc|kt|kts|php|rs|sass|scss|swift|ts|tsx)$"
+pattern = "^(.*/)?(go.mod|go.work)$"
prefix = "//"
[match-file-comment]
-pattern = "^.*\\.(aff|bash|csh|dockerfile|env|gitignore|hcl|ipynb|make|pl|pm|py|ps1|rb|sh|tf|yaml|yml|zsh)$"
+pattern = "^.*\\.(aff|bash|csh|dockerfile|env|gitignore|hcl|ipynb|make)$"
+pattern = "^.*\\.(pl|pm|py|ps1|rb|sh|tf|yaml|yml|zsh)$"
+pattern = "^(.*/)?[Mm]akefile$"
+# systemd.unit(5).
+pattern = "^.*\\.(automount|device|mount|path|scope|service|slice|socket|swap|target|timer)$"
prefix = "#"
[match-file-comment]
@@ -26,7 +32,7 @@ prefix = "/*"
suffix = "*/"
[match-file-comment]
-pattern = "^.*\\.(fxml|htm|html|html5|kml|markdown|md|xml)$"
+pattern = "^.*\\.(fxml|gohtml|htm|html|html5|kml|markdown|md|xml)$"
prefix = "<!--"
suffix = "-->"
@@ -45,7 +51,12 @@ prefix = "%"
# 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 = "^.*\\.(apk|app|bz2|exe|gz|tar|tgz|zip)$"
+pattern = "^.*\\.(csv|doc|docx|json|pdf|ppt|pptx|xls|xlsx)$"
+pattern = "^.*\\.(bmp|gif|ico|jpeg|jpg|png|svg|svgz)$"
+pattern = "^.*\\.(3gp|avi|flv|mkv|mp3|mp4|mpeg|mpg|mpg4)$"
+pattern = "^.*\\.(acc|ogg|mp3)$"
+pattern = "^(.*/)?(go.sum|go.work.sum)$"
[match-license]
pattern = "^(//+|#+|/\\*+|<!--+|--+)?\\s*(.*)governed by a BSD-style(.*)$"