* Add linter CI Signed-off-by: Bora M. Alper <bora@boramalper.org> * Make gosec CI ignore SHA1 and upload sarif Signed-off-by: Bora M. Alper <bora@boramalper.org> * Fix formatting of source files Signed-off-by: Bora M. Alper <bora@boramalper.org> * Make go vet ignore unkeyed composite literals and fix other warnings Signed-off-by: Bora M. Alper <bora@boramalper.org> * Make staticcheck ignore unused methods and fix other warnings Signed-off-by: Bora M. Alper <bora@boramalper.org> * Use golangci-lint Signed-off-by: Bora M. Alper <bora@boramalper.org>
10 lines
182 B
YAML
10 lines
182 B
YAML
linters-settings:
|
|
staticcheck:
|
|
# Select the Go version to target. The default is '1.13'.
|
|
go: "1.15"
|
|
checks: ["all", "-U1000"]
|
|
|
|
govet:
|
|
disable:
|
|
- composites
|