From 054ffc9b6819fa8d7695ee8cebc416c1fd1eeeef Mon Sep 17 00:00:00 2001 From: atheesh Date: Thu, 15 Feb 2024 16:39:42 +0530 Subject: [PATCH] reveert --- .github/linters/.golangci.yaml | 11 ++++++++--- .github/workflows/lint.yml | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) 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: