Documentation ¶
Index ¶
- Constants
- type AutogeneratedExclude
- type BaseRule
- type ByColumn
- type ByLine
- type ByName
- type Cgo
- type Diff
- type Exclude
- type ExcludeCaseSensitive
- type ExcludeRule
- type ExcludeRules
- type ExcludeRulesCaseSensitive
- type FilenameUnadjuster
- type Fixer
- type IdentifierMarker
- type MaxFromLinter
- type MaxPerFileFromLinter
- type MaxSameIssues
- type Nolint
- type PathPrefixer
- type PathPrettifier
- type PathShortener
- type Processor
- type SeverityRule
- type SeverityRules
- type SeverityRulesCaseSensitive
- type SkipDirs
- type SkipFiles
- type SortResults
- type SourceCode
- type UniqByLine
Constants ¶
View Source
const ( Less compareResult = iota - 1 Equal Greater None )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutogeneratedExclude ¶ added in v1.6.1
type AutogeneratedExclude struct {
// contains filtered or unexported fields
}
func NewAutogeneratedExclude ¶ added in v1.6.1
func NewAutogeneratedExclude() *AutogeneratedExclude
func (*AutogeneratedExclude) Finish ¶ added in v1.6.1
func (p *AutogeneratedExclude) Finish()
func (*AutogeneratedExclude) Name ¶ added in v1.6.1
func (p *AutogeneratedExclude) Name() string
type ByColumn ¶ added in v1.29.0
type ByColumn struct {
// contains filtered or unexported fields
}
type ByLine ¶ added in v1.29.0
type ByLine struct {
// contains filtered or unexported fields
}
type ByName ¶ added in v1.29.0
type ByName struct {
// contains filtered or unexported fields
}
type ExcludeCaseSensitive ¶ added in v1.25.1
type ExcludeCaseSensitive struct {
*Exclude
}
func NewExcludeCaseSensitive ¶ added in v1.25.1
func NewExcludeCaseSensitive(pattern string) *ExcludeCaseSensitive
func (ExcludeCaseSensitive) Name ¶ added in v1.25.1
func (p ExcludeCaseSensitive) Name() string
type ExcludeRule ¶ added in v1.15.0
type ExcludeRule struct {
BaseRule
}
type ExcludeRules ¶ added in v1.15.0
type ExcludeRules struct {
// contains filtered or unexported fields
}
func NewExcludeRules ¶ added in v1.15.0
func NewExcludeRules(rules []ExcludeRule, files *fsutils.Files, log logutils.Log) *ExcludeRules
func (ExcludeRules) Finish ¶ added in v1.15.0
func (ExcludeRules) Finish()
func (ExcludeRules) Name ¶ added in v1.15.0
func (ExcludeRules) Name() string
type ExcludeRulesCaseSensitive ¶ added in v1.25.1
type ExcludeRulesCaseSensitive struct {
*ExcludeRules
}
func NewExcludeRulesCaseSensitive ¶ added in v1.25.1
func NewExcludeRulesCaseSensitive(rules []ExcludeRule, files *fsutils.Files, log logutils.Log) *ExcludeRulesCaseSensitive
func (ExcludeRulesCaseSensitive) Name ¶ added in v1.25.1
func (ExcludeRulesCaseSensitive) Name() string
type FilenameUnadjuster ¶ added in v1.17.0
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 ¶ added in v1.17.0
func NewFilenameUnadjuster(pkgs []*packages.Package, log logutils.Log) *FilenameUnadjuster
func (*FilenameUnadjuster) Finish ¶ added in v1.17.0
func (p *FilenameUnadjuster) Finish()
func (*FilenameUnadjuster) Name ¶ added in v1.17.0
func (p *FilenameUnadjuster) Name() string
type Fixer ¶ added in v1.15.0
type Fixer struct {
// contains filtered or unexported fields
}
type IdentifierMarker ¶ added in v1.15.0
type IdentifierMarker struct {
// contains filtered or unexported fields
}
func NewIdentifierMarker ¶ added in v1.15.0
func NewIdentifierMarker() *IdentifierMarker
func (IdentifierMarker) Finish ¶ added in v1.15.0
func (im IdentifierMarker) Finish()
func (IdentifierMarker) Name ¶ added in v1.15.0
func (im IdentifierMarker) 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 (p *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 (p *MaxPerFileFromLinter) Finish()
func (*MaxPerFileFromLinter) Name ¶
func (p *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 (p *MaxSameIssues) Name() string
type PathPrefixer ¶ added in v1.28.3
type PathPrefixer struct {
// contains filtered or unexported fields
}
PathPrefixer adds a customizable prefix to every output path
func NewPathPrefixer ¶ added in v1.28.3
func NewPathPrefixer(prefix string) *PathPrefixer
NewPathPrefixer returns a new path prefixer for the provided string
func (*PathPrefixer) Finish ¶ added in v1.28.3
func (*PathPrefixer) Finish()
Finish is implemented to satisfy the Processor interface
func (*PathPrefixer) Name ¶ added in v1.28.3
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 (p PathPrettifier) Finish()
func (PathPrettifier) Name ¶
func (p PathPrettifier) Name() string
type PathShortener ¶ added in v1.11.1
type PathShortener struct {
// contains filtered or unexported fields
}
func NewPathShortener ¶ added in v1.11.1
func NewPathShortener() *PathShortener
func (PathShortener) Finish ¶ added in v1.11.1
func (p PathShortener) Finish()
func (PathShortener) Name ¶ added in v1.11.1
func (p PathShortener) Name() string
type SeverityRule ¶ added in v1.28.0
type SeverityRules ¶ added in v1.28.0
type SeverityRules struct {
// contains filtered or unexported fields
}
func NewSeverityRules ¶ added in v1.28.0
func NewSeverityRules(defaultSeverity string, rules []SeverityRule, files *fsutils.Files, log logutils.Log) *SeverityRules
func (SeverityRules) Finish ¶ added in v1.28.0
func (SeverityRules) Finish()
func (SeverityRules) Name ¶ added in v1.28.0
func (SeverityRules) Name() string
type SeverityRulesCaseSensitive ¶ added in v1.28.0
type SeverityRulesCaseSensitive struct {
*SeverityRules
}
func NewSeverityRulesCaseSensitive ¶ added in v1.28.0
func NewSeverityRulesCaseSensitive(defaultSeverity string, rules []SeverityRule, files *fsutils.Files, log logutils.Log) *SeverityRulesCaseSensitive
func (SeverityRulesCaseSensitive) Name ¶ added in v1.28.0
func (SeverityRulesCaseSensitive) Name() string
type SkipDirs ¶ added in v1.11.1
type SkipDirs struct {
// contains filtered or unexported fields
}
func NewSkipDirs ¶ added in v1.11.1
type SkipFiles ¶ added in v1.6.1
type SkipFiles struct {
// contains filtered or unexported fields
}
func NewSkipFiles ¶ added in v1.6.1
type SortResults ¶ added in v1.29.0
type SortResults struct {
// contains filtered or unexported fields
}
func NewSortResults ¶ added in v1.29.0
func NewSortResults(cfg *config.Config) *SortResults
func (SortResults) Finish ¶ added in v1.29.0
func (sr SortResults) Finish()
func (SortResults) Name ¶ added in v1.29.0
func (sr SortResults) Name() string
type SourceCode ¶ added in v1.10.1
type SourceCode struct {
// contains filtered or unexported fields
}
func NewSourceCode ¶ added in v1.10.1
func NewSourceCode(lc *fsutils.LineCache, log logutils.Log) *SourceCode
func (SourceCode) Finish ¶ added in v1.10.1
func (p SourceCode) Finish()
func (SourceCode) Name ¶ added in v1.10.1
func (p 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 (p *UniqByLine) Finish()
func (*UniqByLine) Name ¶
func (p *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
- 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_rules.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.