 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- type Config
- func (lc Config) GetLinter() Linter
- func (lc Config) GetSpeed() int
- func (lc Config) NeedsProgramLoading() bool
- func (lc Config) NeedsSSARepresentation() bool
- func (lc Config) WithFullImport() Config
- func (lc Config) WithPresets(presets ...string) Config
- func (lc Config) WithSSA() Config
- func (lc Config) WithSpeed(speed int) Config
- func (lc Config) WithURL(url string) Config
 
- type Context
- type Linter
Constants ¶
      View Source
      
  
const ( PresetFormatting = "format" PresetComplexity = "complexity" PresetStyle = "style" PresetBugs = "bugs" PresetUnused = "unused" PresetPerformance = "performance" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
	Linter           Linter
	EnabledByDefault bool
	DoesFullImport   bool
	NeedsSSARepr     bool
	InPresets        []string
	Speed            int // more value means faster execution of linter
	OriginalURL string // URL of original (not forked) repo, needed for autogenerated README
}
    func (Config) NeedsProgramLoading ¶
func (Config) NeedsSSARepresentation ¶
func (Config) WithFullImport ¶
func (Config) WithPresets ¶
type Context ¶
type Context struct {
	PkgProgram           *packages.Program
	Cfg                  *config.Config
	Program              *loader.Program
	SSAProgram           *ssa.Program
	LoaderConfig         *loader.Config
	ASTCache             *astcache.Cache
	NotCompilingPackages []*loader.PackageInfo
}
    func (*Context) Settings ¶
func (c *Context) Settings() *config.LintersSettings
 Click to show internal directories. 
   Click to hide internal directories.