From 2a8ab762eabbe53f358eecd337872957d1afa01c Mon Sep 17 00:00:00 2001 From: Shulhan Date: Mon, 12 Jan 2026 16:10:30 +0700 Subject: config_match_license: remove unused field DeleteMatch The line that match with pattern will be replaced with new SPDX license identifier, so no need to guard it with this flag. --- testdata/Apply_test.txt | 2 -- testdata/loadConfig/config_exists/spdxconv.cfg | 1 - testdata/scan/spdxconv.cfg | 1 - 3 files changed, 4 deletions(-) (limited to 'testdata') diff --git a/testdata/Apply_test.txt b/testdata/Apply_test.txt index 3ee49f4..712c2bc 100644 --- a/testdata/Apply_test.txt +++ b/testdata/Apply_test.txt @@ -14,8 +14,6 @@ file_copyright_text = M. Shulhan [match-license] 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(.*)$" [match-copyright] diff --git a/testdata/loadConfig/config_exists/spdxconv.cfg b/testdata/loadConfig/config_exists/spdxconv.cfg index 1defeef..ec401a3 100644 --- a/testdata/loadConfig/config_exists/spdxconv.cfg +++ b/testdata/loadConfig/config_exists/spdxconv.cfg @@ -9,7 +9,6 @@ max_line_match = 10 [match-license] pattern = "^(//+|#+)\\s+(.*)governed by a BSD-style(.*)$" license_identifier = BSD-3-Clause -delete_match = true delete_line_pattern = "^(//+|#+)\\s+license that(.*)$" [match-copyright] diff --git a/testdata/scan/spdxconv.cfg b/testdata/scan/spdxconv.cfg index 1defeef..ec401a3 100644 --- a/testdata/scan/spdxconv.cfg +++ b/testdata/scan/spdxconv.cfg @@ -9,7 +9,6 @@ max_line_match = 10 [match-license] pattern = "^(//+|#+)\\s+(.*)governed by a BSD-style(.*)$" license_identifier = BSD-3-Clause -delete_match = true delete_line_pattern = "^(//+|#+)\\s+license that(.*)$" [match-copyright] -- cgit v1.3