Documentation ¶
Index ¶
- type Issue
- type Runner
- func (r *Runner) AddArgs(arg string)
- func (r *Runner) ArgsString() string
- func (r *Runner) DisableLinter(linterName string) error
- func (r *Runner) EnableLinter(linterName string)
- func (r *Runner) GetVersion() string
- func (r *Runner) ListLinters() []config.Linter
- func (r *Runner) RemoveArgs(arg string)
- func (r *Runner) Run() ([]Issue, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Issue ¶
type Issue struct {
// contains filtered or unexported fields
}
Issue is a wrapper of the issue model represented golangci-lint internally.
func (*Issue) FromLinter ¶
func (*Issue) SourceLine ¶ added in v0.2.0
type Runner ¶
type Runner struct { // Absolute path to the golangci-lint executable. Executable string // Args given to `golangci-lint run`. // An arg can be a file name, a workingDir, and in addition, // `...` to analyze them recursively. Args []string // Show only new issues created after git revision REV NewFromRev string // contains filtered or unexported fields }
func (*Runner) ArgsString ¶
func (*Runner) DisableLinter ¶
func (*Runner) EnableLinter ¶
func (*Runner) GetVersion ¶
func (*Runner) ListLinters ¶
ListLinters returns all linters, with settings about whether to enable or not.
func (*Runner) RemoveArgs ¶
Click to show internal directories.
Click to hide internal directories.