| Missing error checks, wrapped errors | references/error-handling.md | | Race conditions, channel misuse | references/concurrency.md | | Interface pollution, naming | references/interfaces.md | | Resource leaks, defer misuse | references/common-mistakes.md |
These patterns are acceptable and should NOT be flagged as issues:
| Missing error check | Error return is actionable (can retry, log, or propagate) | | Goroutine leak | No context cancellation path exists for the goroutine | | Missing defer | Resource isn't explicitly closed before next acquisition or return | | Interface pollution | Interface has > 1 method AND only one consumer exists |
Обзоры кода Go на предмет идиоматических шаблонов, обработки ошибок, безопасности параллелизма и распространенных ошибок. Используйте при просмотре файлов .go, проверке обработки ошибок, использовании горутин или проектировании интерфейса. Источник: existential-birds/beagle.