Documentation
¶
Overview ¶
Package manualmutexunlock implements a Go analysis linter that flags mutex Unlock() calls that are not deferred, which can lead to deadlocks if a panic or early return occurs between Lock() and Unlock().
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Analyzer = &analysis.Analyzer{ Name: "manualmutexunlock", Doc: "reports mutex Unlock() calls that are not deferred", URL: "https://github.com/github/gh-aw/tree/main/pkg/linters/manualmutexunlock", Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Analyzer is the manual-mutex-unlock analysis pass.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.