Go Code Hygiene
Diagnostic, error, context, goroutine, channel, and shared-state hygiene.
Select one bounded recipe. Start in audit mode; authorize fixes only after reviewing the candidate evidence.
Recipes
Go vet and lint suppression debt
developmentBounded audit or remediation to resolve Go diagnostics and narrow nolint directives.
Go error wrapping and sentinel contracts
developmentBounded audit or remediation to preserve error identity and context without string matching or duplicate logging.
Go goroutine, context, cancellation, and leak hygiene
developmentBounded audit or remediation to give every goroutine and context a bounded owner and shutdown path.
Go channel, lock, and shared-state hygiene
developmentBounded audit or remediation to remove channel ownership ambiguity, lock misuse, and data races.