Skip to content

EUPL type doesn't match #66

Description

@daenney

Despite the presence of the license file in

, the license is not matched by licensecheck.

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions