Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var UnknownType = linter.UnknownType
UnknownType is a special sentinel value that is returned from the CheckerContext.TypeOf method instead of the nil type. Deprecated: use linter.UnknownType.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
Checker is an implementation of a check that is described by the associated info. Deprecated: use linter.Checker.
func NewChecker ¶
func NewChecker(ctx *Context, info *CheckerInfo) (*Checker, error)
NewChecker returns initialized checker identified by an info. info must be non-nil. Returns an error if info describes a checker that was not properly registered, or if checker fails to initialize. Deprecated: use linter.NewChecker.
type CheckerCollection ¶
type CheckerCollection = linter.CheckerCollection
CheckerCollection provides additional information for a group of checkers. Deprecated: use linter.CheckerCollection.
type CheckerContext ¶
type CheckerContext = linter.CheckerContext
CheckerContext is checker-local context copy. Fields that are not from Context itself are writeable. Deprecated: use linter.CheckerContext.
type CheckerInfo ¶
type CheckerInfo = linter.CheckerInfo
CheckerInfo holds checker metadata and structured documentation. Deprecated: use linter.CheckerInfo.
func GetCheckersInfo ¶
func GetCheckersInfo() []*CheckerInfo
GetCheckersInfo returns a checkers info list for all registered checkers. The slice is sorted by a checker name.
Info objects can be used to instantiate checkers with NewChecker function. Deprecated: use linter.GetCheckersInfo.
type CheckerParam ¶
type CheckerParam = linter.CheckerParam
CheckerParam describes a single checker customizable parameter. Deprecated: use linter.CheckerParam.
type CheckerParams ¶
type CheckerParams = linter.CheckerParams
CheckerParams holds all checker-specific parameters.
Provides convenient access to the loosely typed underlying map. Deprecated: use linter.CheckerParams.
type Context ¶
Context is a readonly state shared among every checker. Deprecated: use linter.Context.
type FileWalker ¶
type FileWalker = linter.FileWalker
FileWalker is an interface every checker should implement.
The WalkFile method is executed for every Go file inside the package that is being checked. Deprecated: use linter.FileWalker.