diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6cc393..d43edd3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -77,9 +77,9 @@ jobs: exit 1 fi - name: Lint - uses: golangci/golangci-lint-action@v6 + uses: golangci/golangci-lint-action@v7 with: - version: v1.29 + version: v2.1.6 licensedci: name: Check Licenses diff --git a/.golangci.yml b/.golangci.yml index 6abeea5..1a1a59a 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,23 @@ +version: "2" linters: - disable-all: true + default: none + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: enable: - goimports + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$