├── .gitignore ├── .goreleaser.yml ├── LICENSE.txt ├── README.md ├── config ├── config.go ├── config_test.go ├── parse.go ├── parse_test.go └── testdata │ ├── basic.hcl │ ├── basic.hcl.golden │ ├── basic.json │ └── basic.json.golden ├── go.mod ├── go.sum ├── license ├── finder.go ├── github │ ├── detect.go │ └── repo_api.go ├── golang │ ├── translator.go │ └── translator_test.go ├── gopkg │ ├── translate.go │ └── translate_test.go ├── license.go ├── mapper │ ├── finder.go │ ├── translate.go │ └── translate_test.go ├── mock_Finder.go ├── mock_StatusListener.go ├── resolver │ ├── translate.go │ └── translate_test.go ├── status.go └── status_test.go ├── main.go ├── module ├── module.go ├── module_test.go ├── sort.go └── sort_test.go ├── output.go ├── output_multi.go ├── output_terminal.go ├── output_xlsx.go └── semaphore.go /.gitignore: -------------------------------------------------------------------------------- 1 | golicense 2 | config.hcl 3 | dist/ 4 | -------------------------------------------------------------------------------- /.goreleaser.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/.goreleaser.yml -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/README.md -------------------------------------------------------------------------------- /config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/config/config.go -------------------------------------------------------------------------------- /config/config_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/config/config_test.go -------------------------------------------------------------------------------- /config/parse.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/config/parse.go -------------------------------------------------------------------------------- /config/parse_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/config/parse_test.go -------------------------------------------------------------------------------- /config/testdata/basic.hcl: -------------------------------------------------------------------------------- 1 | allow = ["one", 2 | "two", "three/four"] 3 | -------------------------------------------------------------------------------- /config/testdata/basic.hcl.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/config/testdata/basic.hcl.golden -------------------------------------------------------------------------------- /config/testdata/basic.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/config/testdata/basic.json -------------------------------------------------------------------------------- /config/testdata/basic.json.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/config/testdata/basic.json.golden -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/go.sum -------------------------------------------------------------------------------- /license/finder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/finder.go -------------------------------------------------------------------------------- /license/github/detect.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/github/detect.go -------------------------------------------------------------------------------- /license/github/repo_api.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/github/repo_api.go -------------------------------------------------------------------------------- /license/golang/translator.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/golang/translator.go -------------------------------------------------------------------------------- /license/golang/translator_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/golang/translator_test.go -------------------------------------------------------------------------------- /license/gopkg/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/gopkg/translate.go -------------------------------------------------------------------------------- /license/gopkg/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/gopkg/translate_test.go -------------------------------------------------------------------------------- /license/license.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/license.go -------------------------------------------------------------------------------- /license/mapper/finder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/mapper/finder.go -------------------------------------------------------------------------------- /license/mapper/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/mapper/translate.go -------------------------------------------------------------------------------- /license/mapper/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/mapper/translate_test.go -------------------------------------------------------------------------------- /license/mock_Finder.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/mock_Finder.go -------------------------------------------------------------------------------- /license/mock_StatusListener.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/mock_StatusListener.go -------------------------------------------------------------------------------- /license/resolver/translate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/resolver/translate.go -------------------------------------------------------------------------------- /license/resolver/translate_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/resolver/translate_test.go -------------------------------------------------------------------------------- /license/status.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/status.go -------------------------------------------------------------------------------- /license/status_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/license/status_test.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/main.go -------------------------------------------------------------------------------- /module/module.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/module/module.go -------------------------------------------------------------------------------- /module/module_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/module/module_test.go -------------------------------------------------------------------------------- /module/sort.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/module/sort.go -------------------------------------------------------------------------------- /module/sort_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/module/sort_test.go -------------------------------------------------------------------------------- /output.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/output.go -------------------------------------------------------------------------------- /output_multi.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/output_multi.go -------------------------------------------------------------------------------- /output_terminal.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/output_terminal.go -------------------------------------------------------------------------------- /output_xlsx.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/output_xlsx.go -------------------------------------------------------------------------------- /semaphore.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mitchellh/golicense/HEAD/semaphore.go --------------------------------------------------------------------------------