diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 367a3a2..12592d2 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -21,9 +21,8 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: 'go.mod' - cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v5 with: # Require: The version of golangci-lint to use. # @@ -33,37 +32,3 @@ jobs: # When `install-mode` is `goinstall` the value can be v1.2.3, # `latest`, or the hash of a commit. version: 'latest' - - # Optional: working directory, useful for monorepos - # working-directory: somedir - - # Optional: golangci-lint command line arguments. - # - # Note: By default, the `.golangci.yml` file should be at the root of - # the repository. - # - # The location of the configuration file can be changed by using - # `--config=`. - # - # args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0 - - # Optional: show only new issues if it's a pull request. The default - # value is `false`. - # only-new-issues: true - - # Optional: if set to true, then all caching functionality will be - # completely disabled, takes precedence over all other caching - # options. - # skip-cache: true - - # Optional: if set to true, then the action won't cache or restore - # ~/go/pkg. - # skip-pkg-cache: true - - # Optional: if set to true, then the action won't cache or restore - # ~/.cache/go-build. - # skip-build-cache: true - - # Optional: The mode to install golangci-lint. It can be 'binary' or - # 'goinstall'. - # install-mode: "goinstall" diff --git a/.golangci.yaml b/.golangci.yaml index b0a0820..b4511aa 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -5,8 +5,8 @@ linters: enable: - asciicheck - bidichk + - copyloopvar - errorlint - - goconst - gocritic # - gofmt # we are using gofumpt instead - gofumpt