mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-11-21 04:46:29 +03:00
When starting a new goroutine, it is easy to forget utils.Safe, and nothing tells us until a panic in it leaves somebody's terminal broken. The test parses our source files and reports go statements that don't run utils.Safe. It also reports functions given to time.AfterFunc or to a Go method, such as errgroup.Group.Go, that aren't wrapped with utils.SafeFunc or utils.SafeFuncWithError. It only looks at the syntax; this is good enough because the names involved are distinctive. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>