1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-10-24 16:59:22 +03:00
Files
lazygit/pkg/utils
Stefan Haller cb61dc2432 Add a test that checks that every goroutine is guarded against panics
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>
2026-10-14 20:28:53 +02:00
..
2025-05-06 09:43:26 +02:00
2023-09-20 08:35:41 +03:00
2022-08-07 11:16:14 +10:00
2025-11-15 10:46:23 +01:00
2026-08-08 11:15:01 +02:00
2025-11-15 10:46:23 +01:00
2022-10-02 20:57:44 -07:00