Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Rule ¶
type Rule struct {
ID string
Description string
Severity string // CRITICAL, HIGH, MEDIUM, LOW
Ecosystem string // npm, PyPI, Go, Maven, etc.
Package string // regex pattern for package name
Version string // version constraint: "<2.0.0", ">=1.0,<1.5", "*"
Functions []string // vulnerable function names
Tags []string // organizational tags
}
Rule defines a custom vulnerability detection rule.
type RuleSet ¶
type RuleSet struct {
Rules []Rule
}
RuleSet holds a collection of rules loaded from YAML files.
func LoadRulesFile ¶
LoadRulesFile loads rules from a single YAML file using a simple line-by-line parser.
Click to show internal directories.
Click to hide internal directories.