Documentation
¶
Index ¶
- func LintErrorComparisons(info *TypesInfoExt) []analysis.Diagnostic
- func LintErrorTypeAssertions(fset *token.FileSet, info *TypesInfoExt) []analysis.Diagnostic
- func LintFmtErrorfCalls(fset *token.FileSet, info types.Info, multipleWraps bool) []analysis.Diagnostic
- func NewAnalyzer(opts ...Option) *analysis.Analyzer
- type AllowPair
- type ByPosition
- type Option
- type TypesInfoExt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LintErrorComparisons ¶
func LintErrorComparisons(info *TypesInfoExt) []analysis.Diagnostic
func LintErrorTypeAssertions ¶
func LintErrorTypeAssertions(fset *token.FileSet, info *TypesInfoExt) []analysis.Diagnostic
func LintFmtErrorfCalls ¶
func NewAnalyzer ¶
Types ¶
type ByPosition ¶
type ByPosition []analysis.Diagnostic
func (ByPosition) Len ¶
func (l ByPosition) Len() int
func (ByPosition) Less ¶
func (l ByPosition) Less(i, j int) bool
func (ByPosition) Swap ¶
func (l ByPosition) Swap(i, j int)
type Option ¶ added in v1.5.0
type Option func()
func WithAllowedErrors ¶ added in v1.5.0
func WithAllowedWildcard ¶ added in v1.5.0
type TypesInfoExt ¶
type TypesInfoExt struct { *analysis.Pass // Maps AST nodes back to the node they are contained within. NodeParent map[ast.Node]ast.Node // Maps an object back to all identifiers to refer to it. IdentifiersForObject map[types.Object][]*ast.Ident }
func (*TypesInfoExt) ContainingFuncDecl ¶ added in v1.0.3
func (info *TypesInfoExt) ContainingFuncDecl(node ast.Node) *ast.FuncDecl
Click to show internal directories.
Click to hide internal directories.