golico

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

README

apache2conform

Apache 2.0 LICENSE conformation tool for Go source code files in Git repositories.

Given a Go import path, to a repository backed by Git, apache2conform goes through each file trying to find those without license headers as required by the Apache 2.0 license at http://www.apache.org/dev/apply-license.html#new If it finds such files, it runs git blame on each one, and finds the earliest date that the file was committed and then used that as the copyright year.

Install it

go get -u -v github.com/orijtech/apache2conform

Using it

$ apache2conform -copyright-holder Tendermint -fix -repo github.com/tendermint/go-wire
Total: 40:: AddedLicenses: 40 AlreadyHaveLicenses: 0 Errors: 0
TimeSpent: 1.795497249s

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