Documentation ¶
Overview ¶
Package uncalled defines an Analyzer that checks for missing calls.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAnalyzer ¶
NewAnalyzer returns a new Analyzer which checks the passed packages in addition to calls.
Types ¶
type Config ¶
type Config struct {
Rules []Rule
}
Config represents the configuration for uncalled Analyzer.
type Expect ¶
type Expect struct { Method string ResultIndex int `yaml:"resultIndex" mapstructure:"resultIndex"` Args []string }
Expect is the expected call for a Rule.
type Option ¶
type Option func(*analyzer) error
Option represents an Analyzer option.
func ConfigFile ¶
ConfigFile is Analyzer option which configures the config by loading it from file.
type Result ¶
type Result struct { // Type is name of the type. // If "_" then matches any type. // If prefixed by "." then matches any type of specified // in its Rule.Packages. Type string // Pointer specifies if this type should be a pointer to // the named TypeName. Pointer bool // contains filtered or unexported fields }
Result is a result expected from a rule call.
Click to show internal directories.
Click to hide internal directories.