diff --git a/.github/linters/.golangci.yaml b/.github/linters/.golangci.yaml index 61f20528a..d6ebb8d73 100644 --- a/.github/linters/.golangci.yaml +++ b/.github/linters/.golangci.yaml @@ -5,22 +5,24 @@ run: linters: disable-all: true enable: + - bodyclose - depguard - dogsled + - errcheck - exportloopref - goconst - gocritic - - gci - gofumpt - - gosec + - gofmt + - goimports - gosimple - govet - ineffassign - misspell - nakedret + - nestif - nolintlint - staticcheck - - revive - stylecheck - typecheck - unconvert @@ -62,3 +64,6 @@ linters-settings: - "github.com/onsi/gomega" # https://staticcheck.io/docs/configuration/options/#initialisms initialisms: ["ACL", "API", "ASCII", "CPU", "CSS", "DNS", "EOF", "GUID", "HTML", "HTTP", "HTTPS", "ID", "IP", "JSON", "QPS", "RAM", "RPC", "SLA", "SMTP", "SQL", "SSH", "TCP", "TLS", "TTL", "UDP", "UI", "GID", "UID", "UUID", "URI", "URL", "UTF8", "VM", "XML", "XMPP", "XSRF", "XSS", "SIP", "RTP", "AMQP", "DB", "TS"] + + depgaurd: + allow-all: true diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index a144501b0..a6e1db488 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -47,7 +47,7 @@ jobs: - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.55.0 + version: v1.56.1 args: --config .github/linters/.golangci.yaml proto-lint: