Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IgnoreCall ¶
IgnoreCall returns true iff the provided callExpr matches the package of a whitelisted call.
func LoadAcceptList ¶
LoadAcceptList loads the accept list from the provided file path. If any errors occur, they are returned.
Types ¶
type AcceptList ¶
AcceptList stores a list of functions from third-party packages which are known not to start any Goroutines or store a reference to any of their pointer arguments.
var GlobalAcceptList *AcceptList
GlobalAcceptList stores the list of well-known third-party functions which can be ignored by analyzers. If the function is nil, no accept list is set.
func AcceptListFromFile ¶
func AcceptListFromFile(path string) (AcceptList, error)
AcceptListFromFile reads in the accept list from the provided file.
func UnmarshalAcceptList ¶
func UnmarshalAcceptList(data []byte) (AcceptList, error)
UnmarshalAcceptList unmarshals an AcceptList from a yaml file.
Click to show internal directories.
Click to hide internal directories.