migrate CI to GitHub Actions
use codecov.io to report on code coverage. fix a few issues raised by golangci-lint
This commit is contained in:
2
tmpl.go
2
tmpl.go
@@ -68,7 +68,7 @@ func fetchTemplate(license string, templateFile string, spdx spdxFlag) (string,
|
||||
// unknown license, but SPDX headers requested
|
||||
t = tmplSPDX
|
||||
} else {
|
||||
return "", fmt.Errorf("unknown license: %q. Include the '-s' flag to request SPDX style headers using this license.", license)
|
||||
return "", fmt.Errorf("unknown license: %q. Include the '-s' flag to request SPDX style headers using this license", license)
|
||||
}
|
||||
} else if spdx == spdxOn {
|
||||
// append spdx headers to recognized license
|
||||
|
||||
Reference in New Issue
Block a user