diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index ca9d458..c8c6961 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -16,5 +16,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v5 with: - version: v1.57 + version: v1.58.0 args: -c .golangci.yml -v diff --git a/.golangci.yml b/.golangci.yml index b1dbd33..71338f4 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,23 +1,28 @@ run: timeout: 5m + linters: enable-all: true disable: - - maligned # deprecated 1.38 - - interfacer # deprecated 1.38 - - scopelint # deprecated 1.39 - - golint # deprecated 1.41 - - exhaustivestruct # deprecated 1.46 - - ifshort # deprecated 1.48 - - nosnakecase # deprecated 1.48.1 - - deadcode # deprecated 1.49 - - structcheck # deprecated 1.49 - - varcheck # deprecated 1.49 - - wsl + # deprecated + - interfacer # deprecated 1.38.0 + - maligned # deprecated 1.38.0 + - scopelint # deprecated 1.39.0 + - golint # deprecated 1.41.0 + - exhaustivestruct # deprecated 1.46.0 + - ifshort # deprecated 1.48.0 + - deadcode # deprecated 1.49.0 + - structcheck # deprecated 1.49.0 + - varcheck # deprecated 1.49.0 + - execinquery # deprecated 1.58.0 + - gomnd # deprecated 1.58.0 + # unwanted + - depguard - gochecknoglobals - - gomnd + - mnd - nonamedreturns - - depguard + - wsl + linters-settings: gofumpt: extra-rules: true @@ -54,6 +59,7 @@ linters-settings: - name: import-alias-naming - name: import-shadowing - name: unhandled-error + issues: exclude-rules: - path: '^example_test\.go$'