licence-checker

command module
v0.0.0-...-4ffa123 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

README

HAProxy

Go Logger

made-with-Go Github tag Go Report Card GoDoc reference example go.mod Go version Contributors License

Description

Go License checker is an tool to check is packages have correct licenses

Prerequisite

this tool depends on github.com/google/go-licenses being installed

go install github.com/google/go-licenses@latest
Instalation
go install github.com/haproxytech/go-licence-checker@latest
Running

application expects .license-checker.yml file in same folder as go.mod file

location can also be specified with ENV variable LICENSE_CHECKER

Example
allowed:
    type:
        - Apache-2.0
        - MIT
        - BSD-2-Clause
        - BSD-3-Clause
        - ISC
blocked:
    type:
        - MPL-2.0 # this is not compatible with other allowed licenses
Full Example
allowed:
    type:
        - Apache-2.0
        - MIT
        - BSD-2-Clause
        - BSD-3-Clause
        - ISC
    packages:
        - package: github.com/group/package # with custom license
          licence: RND # type is needed since this can change over time
blocked:
    type: # this is not needed. all not listed in allowed are blocked
        - MPL-2.0 # this is not compatible with other allowed licenses
    packages:
        - github.com/group/package/ # with right license but not allowed

Contributing

Thanks for your interest in the project and your willing to contribute:

  • this project uses taskfile
  • Pull requests are welcome!
  • For commit messages and general style please follow the haproxy project's CONTRIBUTING guide and use that where applicable.
Discussion

A Github issue is the right place to discuss feature requests, bug reports or any other subject that needs tracking.

To ask questions, get some help or even have a little chat, you can join our #ingress-controller channel in HAProxy Community Slack.

License

Apache License 2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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