gometalinter

package
v0.0.0-...-e81158a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2017 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gometalinter

type Gometalinter interface {
	// GetLinterDefinitions returns gometalinter's linter
	// definition strings.
	GetLinterDefinitions() ([]string, error)
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL