Files
gitleaks/config/rule.go
T
2022-03-11 09:30:12 -06:00

24 lines
330 B
Go

package config
import (
"regexp"
)
type Rule struct {
Description string
RuleID string
Entropy float64
SecretGroup int
Regex *regexp.Regexp
Path *regexp.Regexp
Tags []string
Allowlist Allowlist
}
func (r *Rule) EntropySet() bool {
if r.Entropy == 0.0 {
return false
}
return true
}