Documentation
¶
Overview ¶
Package unchecked_deferredclose implements a Go analysis linter that flags deferred Close() calls without error checking, which can hide resource cleanup failures. Close() calls inside deferred closures are checked by closeerrorunchecked.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = analyzerutil.New("unchecked_deferredclose", "reports direct deferred Close() calls that discard errors; use a deferred closure that handles the Close() error", run)
Analyzer is the unchecked-deferred-close analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.