aboutsummaryrefslogtreecommitdiff
path: root/testdata/scan/spdxconv.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'testdata/scan/spdxconv.cfg')
-rw-r--r--testdata/scan/spdxconv.cfg11
1 files changed, 10 insertions, 1 deletions
diff --git a/testdata/scan/spdxconv.cfg b/testdata/scan/spdxconv.cfg
index 3b137b6..1cdfefb 100644
--- a/testdata/scan/spdxconv.cfg
+++ b/testdata/scan/spdxconv.cfg
@@ -42,10 +42,19 @@ 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)$"
+
[match-license]
pattern = "^(//+|#+|/\\*+|<!--+)?\\s*(.*)governed by a BSD-style(.*)$"
license_identifier = BSD-3-Clause
-delete_line_pattern = "^(//+|#+|/\\*+|<!--+)?\\s*license that can(.*)$"
+delete_line_before = "^(//+|#+|/\\*+|<!--+)$"
+delete_line_after = "^(//+|#+|/\\*+|<!--+)?\\s*license that can(.*)$"
+delete_line_after = "^(//+|#+|\\*+/|--+>)$"
[match-copyright]
pattern = "^(//+|#+|/\\*+|<!--+)?\\s*Copyright\\s+(?<year>\\d{4}),?\\s+(?<author>.*)\\s+<(?<contact>.*)>.*$"
+delete_line_before = "^(//+|#+|/\\*+|<!--+)$"
+delete_line_after = "^(//+|#+|\\*+/|--+>)$"