Documentation
¶
Overview ¶
Package contextcancelnotdeferred implements a Go analysis linter that flags context cancel functions called manually instead of deferred.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = resourcetracker.NewAnalyzer(resourcetracker.Config[types.Object]{
Name: "contextcancelnotdeferred",
Doc: "reports context cancel functions that are called directly instead of deferred",
Message: "context cancel function should be deferred immediately after context.WithCancel/WithTimeout/WithDeadline",
Acquisitions: cancelFuncAcquisitions,
CleanupKey: cancelCallKey,
})
Analyzer is the context-cancel-not-deferred analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.