diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d8a8aef..e3f26c3 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -18,7 +18,7 @@ jobs: check-latest: true - name: golangci-lint - uses: golangci/golangci-lint-action@0adbc47a5910e47adb692df88187ec8c73c76778 # v6.4.0 + uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6.5.0 with: - version: v1.61 - args: --timeout=5m --verbose + version: v1.64 + args: --verbose diff --git a/.golangci.yml b/.golangci.yml index 9b627a5..e78a66d 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,7 @@ --- run: concurrency: 6 - deadline: 5m + timeout: 5m issues: exclude-rules: # counterfeiter fakes are usually named 'fake_.go' @@ -24,7 +24,6 @@ linters: - dogsled - dupl - durationcheck - - errcheck - goconst - gocritic - gocyclo @@ -56,9 +55,8 @@ linters: - unparam - unused - whitespace - # - rowserrcheck - # - sqlclosecheck # - cyclop + # - errcheck # - errorlint # - exhaustive # - exhaustivestruct @@ -79,7 +77,9 @@ linters: # - nlreturn # - noctx # - paralleltest + # - rowserrcheck # - scopelint + # - sqlclosecheck # - tagliatelle # - testpackage # - thelper @@ -172,9 +172,6 @@ linters-settings: nolintlint: # Enable to ensure that nolint directives are all used. Default is true. allow-unused: false - # Disable to ensure that nolint directives don't have a leading space. Default is true. - # TODO(lint): Enforce machine-readable `nolint` directives - allow-leading-space: true # Exclude following linters from requiring an explanation. Default is []. allow-no-explanation: [] # Enable to require an explanation of nonzero length after each nolint directive. Default is false.