Skip to main content

Module rules

Module rules 

Source
Expand description

Commit message rules and matching engine.

Defines rules for detecting bad commit message patterns and provides a matching engine to evaluate commits.

Structs§

Issue
A matched issue from a commit message.
Rule
A single commit message rule.
RuleSet
Collection of rules loaded from TOML.

Enums§

Pattern
Pattern type for rule matching.

Functions§

default_rules_toml
Returns the default built-in rules as a TOML string.
match_rules
Match a commit message against all rules in the set.