 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
const ( PresetFormatting = "format" PresetComplexity = "complexity" PresetStyle = "style" PresetBugs = "bugs" PresetUnused = "unused" PresetPerformance = "performance" )
Variables ¶
This section is empty.
Functions ¶
func AllPresets ¶
func AllPresets() []string
Types ¶
type Linter ¶
type Linter interface {
	Run(ctx context.Context, lintCtx *golinters.Context) ([]result.Issue, error)
	Name() string
	Desc() string
}
    func GetAllLintersForPreset ¶
type LinterConfig ¶
type LinterConfig struct {
	Linter           Linter
	EnabledByDefault bool
	DoesFullImport   bool
	NeedsSSARepr     bool
	InPresets        []string
	Speed            int // more value means faster execution of linter
}
    func GetAllSupportedLinterConfigs ¶
func GetAllSupportedLinterConfigs() []LinterConfig
func GetLinterConfig ¶
func GetLinterConfig(name string) *LinterConfig
func (LinterConfig) WithFullImport ¶
func (lc LinterConfig) WithFullImport() LinterConfig
func (LinterConfig) WithPresets ¶
func (lc LinterConfig) WithPresets(presets ...string) LinterConfig
func (LinterConfig) WithSSA ¶
func (lc LinterConfig) WithSSA() LinterConfig
func (LinterConfig) WithSpeed ¶
func (lc LinterConfig) WithSpeed(speed int) LinterConfig
type SimpleRunner ¶
type SimpleRunner struct {
	Processors []processors.Processor
}
     Click to show internal directories. 
   Click to hide internal directories.