Skip to main content

Module rules

Module rules 

Source
Expand description

Rule types, pattern matching, and file scanning.

A rule pairs a file pattern with a handler name. The Scanner walks a pack directory and matches each file against the rule set. Exclusion rules are checked first, then inclusion rules by priority (descending). The first match wins.

Structs§

Rule
A rule mapping a file pattern to a handler.
RuleMatch
A file that matched a rule during pack scanning.
Scanner
Scans pack directories and matches files against rules.

Functions§

group_by_handler
Groups rule matches by handler name.
handler_execution_order
Returns handler names in execution order.