Documentation
¶
Overview ¶
Command rawgo enforces the project's "no raw goroutines outside the recovery wrappers" rule. Invoke it like a linter:
go run ./scripts/lint/rawgo \ -baseline=pkg/panicdiag/lintrawgo/baseline.txt ./...
The driver loads packages in syntax-only mode so it works against a codebase that fails type-checking (e.g. an in-flight refactor where some test packages do not yet compile). Exit status:
0 no raw `go` violations found 1 one or more violations found 2 driver setup error (bad flag, missing baseline file, etc.)
See pkg/panicdiag/lintrawgo for the rationale and rules.
Click to show internal directories.
Click to hide internal directories.