Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultConfig string
Functions ¶
This section is empty.
Types ¶
type Allowlist ¶
type Allowlist struct { Description string Regexes []*regexp.Regexp Paths []*regexp.Regexp Commits []string }
func (*Allowlist) CommitAllowed ¶
func (*Allowlist) PathAllowed ¶
func (*Allowlist) RegexAllowed ¶
type Rule ¶
type Rule struct { Description string RuleID string Entropy float64 EntropyReGroup int Regex *regexp.Regexp Path *regexp.Regexp Tags []string Allowlist Allowlist }
func (*Rule) EntropySet ¶
type ViperConfig ¶
type ViperConfig struct { Description string Rules []struct { ID string Description string Entropy float64 EntropyGroup int Regex string Path string Tags []string Allowlist struct { Regexes []string Paths []string Commits []string } } Allowlist struct { Regexes []string Paths []string Commits []string } }
ViperConfig is the config struct used by the Viper config package to parse the config file. This struct does not include regular expressions. It is used as an intermediary to convert the Viper config to the Config struct.
func (*ViperConfig) Translate ¶
func (vc *ViperConfig) Translate() (Config, error)
Click to show internal directories.
Click to hide internal directories.