Documentation
¶
Index ¶
- Variables
- type Config
- func (c Config) IsPropagator(call *ssa.Call) bool
- func (c Config) IsSanitizer(call *ssa.Call) bool
- func (c Config) IsSink(call *ssa.Call) 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
- type NameMatcher
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 []NameMatcher
Sanitizers []NameMatcher
FieldPropagators []fieldPropagatorMatcher
TransformingPropagators []transformingPropagatorMatcher
PropagatorArgs argumentPropagatorMatcher
Whitelist []packageMatcher
AnalysisScope []packageMatcher
}
config contains matchers and analysis scope information
func ReadConfig ¶
type NameMatcher ¶
func (NameMatcher) MatchMethodName ¶
func (r NameMatcher) MatchMethodName(c *ssa.Call) bool
Click to show internal directories.
Click to hide internal directories.