config

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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      []callMatcher
	Sanitizers []callMatcher
}

config contains matchers and analysis scope information

func ReadConfig

func ReadConfig() (*Config, error)

func (Config) IsSanitizer

func (c Config) IsSanitizer(call *ssa.Call) bool

func (Config) IsSink

func (c Config) IsSink(call *ssa.Call) bool

func (Config) IsSinkFunction added in v0.1.2

func (c Config) IsSinkFunction(f *ssa.Function) bool

func (Config) IsSource

func (c Config) IsSource(t types.Type) bool

func (Config) IsSourceField

func (c Config) IsSourceField(typ types.Type, fld *types.Var) bool

func (Config) IsSourceFieldAddr

func (c Config) IsSourceFieldAddr(fa *ssa.FieldAddr) bool

Directories

Path Synopsis
Package regexp contains functionality for unmarshalling regular expressions from a config.
Package regexp contains functionality for unmarshalling regular expressions from a config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL