refactor(license): use goyacc for license parser (#3824)

This commit is contained in:
Teppei Fukuda
2023-03-14 09:27:17 +02:00
committed by GitHub
parent 00c763bc10
commit 2bb25e766b
22 changed files with 1493 additions and 705 deletions

View File

@@ -1,6 +1,8 @@
package licensing
import "strings"
import (
"strings"
)
var mapping = map[string]string{
// GPL
@@ -14,6 +16,7 @@ var mapping = map[string]string{
"GPL-2": GPL20,
"GPL-2.0-ONLY": GPL20,
"GPL2+": GPL20,
"GPLV2": GPL20,
"GPLV2+": GPL20,
"GPL-2+": GPL20,
"GPL-2.0+": GPL20,
@@ -23,6 +26,7 @@ var mapping = map[string]string{
"GPL3": GPL30,
"GPL 3.0": GPL30,
"GPL 3": GPL30,
"GPLV3": GPL30,
"GPLV3+": GPL30,
"GPL-3": GPL30,
"GPL-3.0-ONLY": GPL30,