-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
Despite the presence of the license file in
licensecheck/licenses/EUPL-1.2.lre
Line 1 in 0279a51
| //** |
package main
import (
"fmt"
"os"
"github.com/google/licensecheck"
)
func main() {
data, _ := os.ReadFile("EUPL-1.2%20EN.txt")
cov := licensecheck.Scan(data)
fmt.Printf("%.1f%% of text covered by licenses:\n", cov.Percent)
for _, m := range cov.Match {
fmt.Printf("%s at [%d:%d] IsURL=%v\n", m.Type, m.Start, m.End, m.IsURL)
}
}$ curl -LO https://joinup.ec.europa.eu/sites/default/files/custom-page/attachment/2020-03/EUPL-1.2%20EN.txt
$ go run main.go
100.0% of text covered by licenses:
Unknown at [0:13827] IsURL=false
Metadata
Metadata
Assignees
Labels
No labels