Documentation ¶
Overview ¶
Package lint tests Go code for policy and style violations, as well as detecting suspicious constructs that are typically bugs.
Directories ¶
Path | Synopsis |
---|---|
passes
|
|
descriptormarshal
Package descriptormarshal defines an suite of Analyzers that detects correct setting of timestamps when unmarshaling table descriptors.
|
Package descriptormarshal defines an suite of Analyzers that detects correct setting of timestamps when unmarshaling table descriptors. |
errcmp
Package errcmp defines an Analyzer which checks for usage of errors.Is instead of direct ==/!= comparisons.
|
Package errcmp defines an Analyzer which checks for usage of errors.Is instead of direct ==/!= comparisons. |
hash
Package hash defines an Analyzer that detects correct use of hash.Hash.
|
Package hash defines an Analyzer that detects correct use of hash.Hash. |
nocopy
Package nocopy defines an Analyzer that detects invalid uses of util.NoCopy.
|
Package nocopy defines an Analyzer that detects invalid uses of util.NoCopy. |
returnerrcheck
Package returnerrcheck defines an suite of Analyzers that detects conditionals which check for a non-nil error and then proceed to return a nil error.
|
Package returnerrcheck defines an suite of Analyzers that detects conditionals which check for a non-nil error and then proceed to return a nil error. |
timer
Package timer defines an Analyzer that detects correct use of timeutil.Timer.
|
Package timer defines an Analyzer that detects correct use of timeutil.Timer. |
unconvert
Package unconvert defines an Analyzer that detects unnecessary type conversions.
|
Package unconvert defines an Analyzer that detects unnecessary type conversions. |
Click to show internal directories.
Click to hide internal directories.