Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 1.5% on proxy.golang.org
Top 0.7% dependent packages on proxy.golang.org
Top 0.6% dependent repos on proxy.golang.org
Top 2.9% forks on proxy.golang.org
Top 0.2% docker downloads on proxy.golang.org

proxy.golang.org : github.com/google/licensecheck

Package licensecheck classifies license files and heuristically determines how well they correspond to known open source licenses. A text (a slice of bytes) can be scanned for known licenses by calling Scan. The resulting Coverage structure describes all the matches found as well as what percentage of the file was covered by known matches. The Scan function uses a built-in license set, which is the known SPDX licenses augmented with some other commonly seen licenses. (See licenses/README.md for details about the license set.) A custom scanner can be created using NewScanner, passing in a set of license patterns to scan for. The license patterns are written as license regular expressions (LREs). BuiltinLicenses returns the set of license patterns used by Scan. License Regular Expressions Each license to be recognized is specified by writing a license regular expression (LRE) for it. The pattern syntax and the matching are word-based and case-insensitive; punctuation is ignored in the pattern and in the matched text. The valid LRE patterns are: To make patterns harder to misread in large texts: (( must only appear at the start of a line (possibly indented); )) and ))?? must only appear at the end of a line (with possible trailing spaces); and || must only appear inside a (( )) or (( ))?? group. For example: An older, less precise matcher using the names Cover, New, and Checker was removed from this package. Use v0.1.0 for the final version of that API.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/google/licensecheck
License: BSD-3-Clause
Latest release: over 3 years ago
First release: almost 4 years ago
Namespace: github.com/google
Dependent packages: 150
Dependent repositories: 108
Stars: 372 on GitHub
Forks: 76 on GitHub
Docker dependents: 230
Docker downloads: 234,006,113
See more repository details: repos.ecosyste.ms
Last synced: 3 days ago

    Loading...
    Readme
    Loading...