Documentation
¶
Index ¶
- Variables
- type Config
- func (c Config) IsExcluded(fn *ssa.Function) bool
- func (c Config) IsSanitizer(call *ssa.Call) bool
- func (c Config) IsSinkCall(call *ssa.Call) bool
- func (c Config) IsSinkFunction(f *ssa.Function) bool
- func (c Config) IsSource(t types.Type) bool
- func (c Config) IsSourceField(typ types.Type, fld *types.Var) bool
- func (c Config) IsSourceFieldAddr(fa *ssa.FieldAddr) bool
- func (c Config) IsSourceFieldTag(tag string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var FlagSet flag.FlagSet
FlagSet should be used by analyzers to reuse -config flag.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Sources []sourceMatcher
Sinks []funcMatcher
Sanitizers []funcMatcher
FieldTags []fieldTagMatcher
Exclude []funcMatcher
}
config contains matchers and analysis scope information
func ReadConfig ¶
func (Config) IsExcluded ¶ added in v0.1.4
IsExcluded determines if a function matches one of the exclusion patterns.
func (Config) IsSourceFieldTag ¶ added in v0.1.4
IsSourceFieldTag determines whether a field tag made up of a key and value is a Source.
Click to show internal directories.
Click to hide internal directories.