Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 17 Jul 06:02

flakylint v0.1.0 — initial release

Four conservative go/analysis checks for flaky-test patterns in Go:

  • httptestclosehttptest.NewServer never closed (leaked port/goroutines); autofix inserts t.Cleanup(srv.Close)
  • sleepasserttime.Sleep in a test body instead of synchronization; suggests testing/synctest (Go 1.24+)
  • parallelglobal — writes to package-level variables in t.Parallel() tests
  • exitfatalos.Exit / log.Fatal in tests (skips cleanup); autofix rewrites log.Fatal*t.Fatal*

Field-tested before release: 0 false positives across 104 hand-triaged findings on kubernetes, grafana, prometheus, and testcontainers-go — see docs/corpus.

Install: go install github.com/malikov73/flakylint/cmd/flakylint@v0.1.0