diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61adbfcd2..810f45c68 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -42,9 +42,10 @@ jobs: go-version: ${{ matrix.go }} - name: Check code - uses: golangci/golangci-lint-action@v6.5.0 + uses: golangci/golangci-lint-action@v7.0.0 with: args: --timeout 5m + version: v2.1 - name: Get dependencies run: | diff --git a/.golangci.yml b/.golangci.yml index 4ad9dfc3c..38445ab28 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,3 +1,22 @@ +version: "2" linters: + exclusions: + generated: lax + presets: + - comments + - common-false-positives + - legacy + - std-error-handling + paths: + - third_party$ + - builtin$ + - examples$ +formatters: enable: - gofmt + exclusions: + generated: lax + paths: + - third_party$ + - builtin$ + - examples$