Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Gometalinter ¶
type GometalinterAST ¶
type GometalinterAST struct {
// contains filtered or unexported fields
}
GometalinterAST attemts to find the current linter definitions in the gometalinter source. It spends too much time on this task and is very picky about the structure of gometalinter's source code. You don't want to use GometalinterAST unless you care to know how to dig through a particular AST manually. Note that there exists ast.Walk if you're OK with depth-first search.
func (*GometalinterAST) GetLinterDefinitions ¶
func (g *GometalinterAST) GetLinterDefinitions() ([]string, error)
type GometalinterSSA ¶
type GometalinterSSA struct {
// contains filtered or unexported fields
}
func (*GometalinterSSA) GetLinterDefinitions ¶
func (g *GometalinterSSA) GetLinterDefinitions() ([]string, error)
type GometalinterSource ¶
type GometalinterSource struct {
// contains filtered or unexported fields
}
GometalinterSource parses the gometalinter source (plain text) to find the linter definitions. This depends on no major changes to gometalinter's source. For the sake of speed and simplicity, the returned strings are inaccurate, but this is sufficient for what golinters wants to check.
func (*GometalinterSource) GetLinterDefinitions ¶
func (g *GometalinterSource) GetLinterDefinitions() ([]string, error)