Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 2.0 incorrectly recognized #62

Open
kevinkucharczyk opened this issue Sep 14, 2023 · 0 comments
Open

Python 2.0 incorrectly recognized #62

kevinkucharczyk opened this issue Sep 14, 2023 · 0 comments

Comments

@kevinkucharczyk
Copy link

The license file at https://github.com/nodeca/argparse/blob/a645a9a9d3d0a347f383d0b795859e67dfae6ad8/LICENSE isn't recognized as a Python 2.0 license.

When I run

package main

import (
	"fmt"
	"os"

	"github.com/google/licensecheck"
)

func main() {
	content, _ := os.ReadFile("LICENSE")

	cov := licensecheck.Scan(content)
	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.ID, m.Start, m.End, m.IsURL)
	}
}

on the license file, the output is

7.9% of text covered by licenses:
HPND at [11702:12775] IsURL=false

It looks like the license file referenced is a longer version of the Python 2.0 license, which is throwing the checks off.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant