diff options
Diffstat (limited to 'config_match_license.go')
| -rw-r--r-- | config_match_license.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/config_match_license.go b/config_match_license.go new file mode 100644 index 0000000..11e09fe --- /dev/null +++ b/config_match_license.go @@ -0,0 +1,23 @@ +// SPDX-License-Identifier: GPL-3.0-only +// SPDX-FileCopyrightText: 2025 M. Shulhan <ms@kilabit.info> + +package spdxconv + +type configMatchLicense struct { + // Pattern to be searched in file. + Pattern string `ini:"match-license::pattern"` + + // LicenseIdentifier that replace the default "license_identifier" + // value if Pattern match. + LicenseIdentifier string `ini:"match-license::license_identifier"` + + // DeleteLinePattern zero or more pattern that will be search after + // Pattern match line. + // A line that match with this pattern will be deleted. + // An empty line stop the search. + DeleteLinePattern []string `ini:"match-license::delete_line_pattern"` + + // DeleteMatch if set to true, the line that match with Pattern will + // be deleted. + DeleteMatch bool `ini:"match-license::delete_match"` +} |
