diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5795af6..2fad670 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -80,7 +80,7 @@ jobs: - name: Lint uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 with: - version: v2.1.6 + version: v2.4.0 dev: name: Developer environment diff --git a/.golangci.yaml b/.golangci.yaml index 3baf365..bed0b83 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -25,7 +25,7 @@ linters: - nolintlint - prealloc - predeclared - # - revive + - revive - rowserrcheck - sqlclosecheck - staticcheck @@ -75,8 +75,15 @@ linters: # - testpackage # - wsl - disable: - - errcheck + exclusions: + rules: + - linters: + - errcheck + - noctx + path: _test.go + presets: + - comments + - std-error-handling settings: misspell: