Skip to content

Python 2.0 incorrectly recognized #62

@kevinkucharczyk

Description

@kevinkucharczyk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions