Documentation
¶
Overview ¶
Package linter provides a linter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linter ¶
type Linter struct {
// contains filtered or unexported fields
}
Linter represents the main linter.
func (*Linter) PrintIssues ¶
PrintIssues prints all issues found by the linter.
type Rule ¶
type Rule interface {
// Name returns the name of the rule.
Name() string
// Description returns a description of what the rule checks.
Description() string
// Analyze analyzes the given AST node and returns any issues found.
Analyze(node ast.ExprNode)
}
Rule represents a linting rule that can analyze AST nodes.
Click to show internal directories.
Click to hide internal directories.