Skip to content

Enable nolintlint and wastedassign, drop redundant lint config - #7076

Draft
denik wants to merge 1 commit into
mainfrom
denik/golangci-config-cleanup
Draft

denik wants to merge 1 commit into
mainfrom
denik/golangci-config-cleanup

Conversation

@denik

@denik denik commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Enable nolintlint. It normalizes // nolint: to //nolint: and removes directives that no longer suppress anything, for example recvcheck ones now covered by the exclusions added in Bump Go to 1.27.2 and golangci-lint to v2.14.0 #7052.
  • Enable wastedassign and fix its 4 findings.
  • Drop revive's use-waitgroup-go, which duplicates modernize waitgroupgo; both fire on the same code.
  • Drop the legacy and common-false-positives exclusion presets, which exclude nothing in this repo.

Why

Follow-up to #7052: trim lint config that is redundant after the golangci-lint v2.14 upgrade, and stop stale //nolint directives from accumulating.

Tests

./task lint reports 0 issues on the root and tools modules; go test passes on all changed packages; ./task checks passes.

This pull request and its description were written by Isaac.

- Enable nolintlint: normalize `// nolint:` directives and remove ones that
  no longer suppress anything.
- Enable wastedassign and fix the four dead assignments it reports.
- Drop revive's use-waitgroup-go (duplicates modernize waitgroupgo) and the
  `legacy` and `common-false-positives` exclusion presets, which exclude
  nothing in this repo.

Co-authored-by: Isaac <no-reply@databricks.com>
@github-actions github-actions Bot added the DABs DABs related issues label Oct 15, 2026
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 10aa5af

Run: 38768789369

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 276 15 5:42
✅​ aws-windows-latest-4core-16gb 278 13 3:35
✅​ azure linux-2core-8gb 275 15 5:30
✅​ azure-windows-latest-4core-16gb 277 13 4:46
✅​ gcp linux-2core-8gb 276 15 5:17
✅​ gcp-windows-latest-4core-16gb 278 13 3:45
Top 6 slowest tests (at least 2 minutes):
duration env testname
4:41 azure-windows-latest-4core-16gb TestAccept
3:37 azure linux-2core-8gb TestAccept
3:35 aws linux-2core-8gb TestAccept
3:33 gcp linux-2core-8gb TestAccept
3:28 aws-windows-latest-4core-16gb TestAccept
3:23 gcp-windows-latest-4core-16gb TestAccept

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

DABs DABs related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants