diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6d8d13..775d354 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: uses: golangci/golangci-lint-action@v6 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.62 + version: v2.0.0 # Optional: working directory, useful for monorepos # working-directory: somedir @@ -134,4 +134,4 @@ jobs: export KUBECONFIG="${HOME}/.kube/config" echo "environment-kubeconfig:" ${KUBECONFIG} GOPROXY=https://proxy.golang.org,direct GOSUMDB=off GO111MODULE=on go test -v ./... - \ No newline at end of file + diff --git a/.golangci.yml b/.golangci.yml index 2b9fbf7..e4bbf2c 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -127,7 +127,7 @@ issues: exclude-rules: - path: _test\.go linters: - - gomnd + - mnd # https://github.com/go-critic/go-critic/issues/926 - linters: @@ -135,16 +135,4 @@ issues: text: "unnecessaryDefer:" run: - skip-dirs: - - test/testdata_etc - - internal/cache - - internal/renameio - - internal/robustio timeout: 5m - -# golangci.com configuration -# https://github.com/golangci/golangci/wiki/Configuration -service: - golangci-lint-version: 1.23.x # use the fixed version to not introduce new linters unexpectedly - prepare: - - echo "here I can run custom commands, but no preparation needed for this repo"