UNPKG

pi-lens

Version:

Real-time code feedback for pi — LSP, linters, formatters, type-checking, structural analysis & booboo

20 lines (19 loc) • 330 B
id: unlock-in-loop valid: - | func good() { mu.Lock() defer mu.Unlock() for _, item := range items { process(item) } } invalid: - | func bad() { for _, item := range items { mu.Lock() process(item) mu.Unlock() } }