license-checker

command module
v0.0.0-...-97d8c59 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

README

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" ]
    }

Documentation

Overview

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

license-checker is a fairly simple command line wrapper for the github.com/google/licensecheck library.

license-checker looks for a config file at <project-root>/license-checker.cfg See the Config struct for the config parameters.

Directories

Path Synopsis
Package checker checks file header licenses adhere to a project rule file.
Package checker checks file header licenses adhere to a project rule file.
Package match provides functions for performing filepath [?,*,**] wildcard matching.
Package match provides functions for performing filepath [?,*,**] wildcard matching.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL