diff --git a/.golangci.yml b/.golangci.yml new file mode 100644 index 0000000..83853b9 --- /dev/null +++ b/.golangci.yml @@ -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" + diff --git a/Makefile b/Makefile index 507d335..9309ae6 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ fullbuild: sendsubmit: cd tools && sh ./submit-request.curl +# Requires +# go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest lint: golangci-lint run cmd/... pkg/...