import "github.com/cockroachdb/cockroach/pkg/testutils/lint"
Package lint tests Go code for policy and style violations, as well as detecting suspicious constructs that are typically bugs.
Path | Synopsis |
---|---|
passes/descriptormarshal | Package descriptormarshal defines an suite of Analyzers that detects correct setting of timestamps when unmarshaling table descriptors. |
passes/errcmp | Package errcmp defines an Analyzer which checks for usage of errors.Is instead of direct ==/!= comparisons. |
passes/fmtsafe | |
passes/hash | Package hash defines an Analyzer that detects correct use of hash.Hash. |
passes/nocopy | Package nocopy defines an Analyzer that detects invalid uses of util.NoCopy. |
passes/passesutil | Package passesutil provides useful functionality for implementing passes. |
passes/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. |
passes/timer | Package timer defines an Analyzer that detects correct use of timeutil.Timer. |
passes/unconvert | Package unconvert defines an Analyzer that detects unnecessary type conversions. |
Updated 2021-01-23. Refresh now. Tools for package owners.