Skip to main content

Module custom

Module custom 

Source

Structs§

BannedDepSpec
Banned dependency entry in custom rule definition.
CustomRuleDef
A declarative custom rule definition (parsed from YAML or JSON).
CustomRuleDetector
Runtime detector instantiated from a CustomRuleDef.
CustomRuleMatch
Match specification inside a custom rule definition.

Functions§

load_custom_rule_file
Load a custom rule from a YAML or JSON file.
load_custom_rules_from_dir
Load all custom rules from a directory (.yaml, .yml, .json).