Documentation
¶
Overview ¶
Package deferinloop implements a Go analysis linter that flags defer statements inside loops where they run when the enclosing function returns, rather than at the end of each iteration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = analyzerutil.New("deferinloop", "reports defer statements inside loops where they run when the enclosing function returns rather than at the end of each iteration; range-over-function iterators and function literals form scope boundaries; test files are not checked", run)
Analyzer is the defer-in-loop analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.