Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 609 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 609 Bytes

license-checker

license-checker is a command line tool that checks project licenses adhere to a project rule file.

license-checker uses the github.com/google/licensecheck library to detect licenses in use, and uses a config file at <project-root>/license-checker.cfg for the search rules and accepted licenses.

Example license-checker.cfg config:

    {
        "paths":
        [
            { "exclude": [ "out/*", "build/*" ] },
            { "include": [ "out/foo.txt" ] }
        ],
        "licenses": [ "Apache-2.0-Header", "MIT" ]
    }