migrate to golangci-lint v2 (#13109)

* migrate to golangci-lint v2
* copyloopvar
This commit is contained in:
Michael Yang
2025-11-18 11:00:26 -08:00
committed by GitHub
parent 330f62a7fa
commit 718961de68
7 changed files with 61 additions and 33 deletions

View File

@@ -226,12 +226,9 @@ jobs:
if: always()
run: go test -count=1 -benchtime=1x ./...
# TODO(bmizerany): replace this heavy tool with just the
# tools/checks/binaries we want and then make them all run in parallel
# across jobs, not on a single tiny vm on Github Actions.
- uses: golangci/golangci-lint-action@v6
- uses: golangci/golangci-lint-action@v9
with:
args: --timeout 10m0s -v
only-new-issues: true
patches:
runs-on: ubuntu-latest
@@ -240,4 +237,4 @@ jobs:
- name: Verify patches apply cleanly and do not change files
run: |
make -f Makefile.sync clean checkout apply-patches sync
git diff --compact-summary --exit-code
git diff --compact-summary --exit-code