Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FailedResultError ¶ added in v1.0.0
type FailedResultError struct {
// contains filtered or unexported fields
}
FailedResultError means a linter didn't error but returned a failed result
func (*FailedResultError) Error ¶ added in v1.0.0
func (e *FailedResultError) Error() string
Error implements the error interface
type Linter ¶
type Linter interface {
Name() string
WillRun() error
Cleanup(wg *sync.WaitGroup)
MaxConcurrency() int
Run(filePath string, rep chan Report)
}
Linter is a simple interface to enable a setup and check using WillRun before executing multiple Run's
type Runner ¶
Runner will handle parallel runs of linters
func (*Runner) LintFileList ¶
LintFileList simply takes a single Linter and runs it for each file
Click to show internal directories.
Click to hide internal directories.