Documentation ¶
Index ¶
- Variables
- type AutogeneratedExclude
- type Cgo
- type Diff
- type Exclude
- type ExcludeRules
- type FilenameUnadjuster
- type Fixer
- type IdentifierMarker
- type InvalidIssue
- type MaxFromLinter
- type MaxPerFileFromLinter
- type MaxSameIssues
- type Nolint
- type PathPrefixer
- type PathPrettifier
- type PathShortener
- type Processor
- type Severity
- type SkipDirs
- type SkipFiles
- type SortResults
- type SourceCode
- type UniqByLine
Constants ¶
This section is empty.
Variables ¶
View Source
var StdExcludeDirRegexps = []string{
normalizePathRegex("vendor"),
normalizePathRegex("third_party"),
normalizePathRegex("testdata"),
normalizePathRegex("examples"),
normalizePathRegex("Godeps"),
normalizePathRegex("builtin"),
}
Functions ¶
This section is empty.
Types ¶
type AutogeneratedExclude ¶
type AutogeneratedExclude struct {
// contains filtered or unexported fields
}
func NewAutogeneratedExclude ¶
func NewAutogeneratedExclude(strict bool) *AutogeneratedExclude
func (*AutogeneratedExclude) Finish ¶
func (*AutogeneratedExclude) Finish()
func (*AutogeneratedExclude) Name ¶
func (*AutogeneratedExclude) Name() string
type ExcludeRules ¶
type ExcludeRules struct {
// contains filtered or unexported fields
}
func NewExcludeRules ¶
func (ExcludeRules) Finish ¶
func (ExcludeRules) Finish()
func (ExcludeRules) Name ¶
func (p ExcludeRules) Name() string
type FilenameUnadjuster ¶
type FilenameUnadjuster struct {
// contains filtered or unexported fields
}
FilenameUnadjuster is needed because a lot of linters use fset.Position(f.Pos()) to get filename. And they return adjusted filename (e.g. *.qtpl) for an issue. We need restore real .go filename to properly output it, parse it, etc.
func NewFilenameUnadjuster ¶
func NewFilenameUnadjuster(pkgs []*packages.Package, log logutils.Log) *FilenameUnadjuster
func (*FilenameUnadjuster) Finish ¶
func (*FilenameUnadjuster) Finish()
func (*FilenameUnadjuster) Name ¶
func (*FilenameUnadjuster) Name() string
type IdentifierMarker ¶
type IdentifierMarker struct {
// contains filtered or unexported fields
}
func NewIdentifierMarker ¶
func NewIdentifierMarker() *IdentifierMarker
func (IdentifierMarker) Finish ¶
func (IdentifierMarker) Finish()
func (IdentifierMarker) Name ¶
func (IdentifierMarker) Name() string
type InvalidIssue ¶
type InvalidIssue struct {
// contains filtered or unexported fields
}
func NewInvalidIssue ¶
func NewInvalidIssue(log logutils.Log) *InvalidIssue
func (InvalidIssue) Finish ¶
func (InvalidIssue) Finish()
func (InvalidIssue) Name ¶
func (InvalidIssue) Name() string
type MaxFromLinter ¶
type MaxFromLinter struct {
// contains filtered or unexported fields
}
func NewMaxFromLinter ¶
func (*MaxFromLinter) Finish ¶
func (p *MaxFromLinter) Finish()
func (*MaxFromLinter) Name ¶
func (*MaxFromLinter) Name() string
type MaxPerFileFromLinter ¶
type MaxPerFileFromLinter struct {
// contains filtered or unexported fields
}
func NewMaxPerFileFromLinter ¶
func NewMaxPerFileFromLinter(cfg *config.Config) *MaxPerFileFromLinter
func (*MaxPerFileFromLinter) Finish ¶
func (*MaxPerFileFromLinter) Finish()
func (*MaxPerFileFromLinter) Name ¶
func (*MaxPerFileFromLinter) Name() string
type MaxSameIssues ¶
type MaxSameIssues struct {
// contains filtered or unexported fields
}
func NewMaxSameIssues ¶
func (*MaxSameIssues) Finish ¶
func (p *MaxSameIssues) Finish()
func (*MaxSameIssues) Name ¶
func (*MaxSameIssues) Name() string
type PathPrefixer ¶
type PathPrefixer struct {
// contains filtered or unexported fields
}
PathPrefixer adds a customizable prefix to every output path
func NewPathPrefixer ¶
func NewPathPrefixer(prefix string) *PathPrefixer
NewPathPrefixer returns a new path prefixer for the provided string
func (*PathPrefixer) Finish ¶
func (*PathPrefixer) Finish()
Finish is implemented to satisfy the Processor interface
func (*PathPrefixer) Name ¶
func (*PathPrefixer) Name() string
Name returns the name of this processor
type PathPrettifier ¶
type PathPrettifier struct {
// contains filtered or unexported fields
}
func NewPathPrettifier ¶
func NewPathPrettifier() *PathPrettifier
func (PathPrettifier) Finish ¶
func (PathPrettifier) Finish()
func (PathPrettifier) Name ¶
func (PathPrettifier) Name() string
type PathShortener ¶
type PathShortener struct {
// contains filtered or unexported fields
}
func NewPathShortener ¶
func NewPathShortener() *PathShortener
func (PathShortener) Finish ¶
func (PathShortener) Finish()
func (PathShortener) Name ¶
func (PathShortener) Name() string
type Severity ¶
type Severity struct {
// contains filtered or unexported fields
}
func NewSeverity ¶
type SkipDirs ¶
type SkipDirs struct {
// contains filtered or unexported fields
}
func NewSkipDirs ¶
type SortResults ¶
type SortResults struct {
// contains filtered or unexported fields
}
func NewSortResults ¶
func NewSortResults(cfg *config.Config) *SortResults
func (SortResults) Finish ¶
func (SortResults) Finish()
func (SortResults) Name ¶
func (SortResults) Name() string
type SourceCode ¶
type SourceCode struct {
// contains filtered or unexported fields
}
func NewSourceCode ¶
func NewSourceCode(lc *fsutils.LineCache, log logutils.Log) *SourceCode
func (SourceCode) Finish ¶
func (SourceCode) Finish()
func (SourceCode) Name ¶
func (SourceCode) Name() string
type UniqByLine ¶
type UniqByLine struct {
// contains filtered or unexported fields
}
func NewUniqByLine ¶
func NewUniqByLine(cfg *config.Config) *UniqByLine
func (*UniqByLine) Finish ¶
func (*UniqByLine) Finish()
func (*UniqByLine) Name ¶
func (*UniqByLine) Name() string
Source Files ¶
- autogenerated_exclude.go
- base_rule.go
- cgo.go
- diff.go
- exclude.go
- exclude_rules.go
- filename_unadjuster.go
- fixer.go
- identifier_marker.go
- invalid_issue.go
- issues.go
- max_from_linter.go
- max_per_file_from_linter.go
- max_same_issues.go
- nolint.go
- path_prefixer.go
- path_prettifier.go
- path_shortener.go
- processor.go
- severity.go
- skip_dirs.go
- skip_files.go
- sort_results.go
- source_code.go
- uniq_by_line.go
Click to show internal directories.
Click to hide internal directories.