Add golangci linter setup
This commit is contained in:
committed by
=Michael Hohn
parent
d145731c4b
commit
b543cebfac
23
.golangci.yml
Normal file
23
.golangci.yml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
linters:
|
||||||
|
enable:
|
||||||
|
- staticcheck
|
||||||
|
- unused
|
||||||
|
- decorder
|
||||||
|
- errchkjson
|
||||||
|
- exhaustruct
|
||||||
|
- gochecknoinits
|
||||||
|
- gochecksumtype
|
||||||
|
- goconst
|
||||||
|
- gocritic
|
||||||
|
- godox
|
||||||
|
- lll
|
||||||
|
- loggercheck
|
||||||
|
- sloglint
|
||||||
|
- tagalign
|
||||||
|
- unparam
|
||||||
|
|
||||||
|
linters-settings:
|
||||||
|
staticcheck:
|
||||||
|
checks:
|
||||||
|
- "SA"
|
||||||
|
|
||||||
2
Makefile
2
Makefile
@@ -12,6 +12,8 @@ fullbuild:
|
|||||||
sendsubmit:
|
sendsubmit:
|
||||||
cd tools && sh ./submit-request.curl
|
cd tools && sh ./submit-request.curl
|
||||||
|
|
||||||
|
# Requires
|
||||||
|
# go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
|
||||||
lint:
|
lint:
|
||||||
golangci-lint run cmd/... pkg/...
|
golangci-lint run cmd/... pkg/...
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user