Expand description
This module defines the Rule trait and related types for implementing linting rules in rumdl. Includes rule categories, dynamic dispatch helpers, and inline comment handling for rule enable/disable.
Structs§
Enums§
- Cross
File Scope - Declares what cross-file data a rule needs
- FixCapability
- Capability of a rule to fix issues
- Lint
Error - Rule
Category - Type of rule for selective processing
- Severity
Traits§
Functions§
- is_
rule_ disabled_ at_ line - Check if a rule is disabled at a specific line via inline comments
- is_
rule_ disabled_ by_ comment - Check if a rule is disabled via inline comments in the file content (for backward compatibility)
- parse_
disable_ comment - Parse a disable comment and return the list of rules (empty vec means all rules)
- parse_
enable_ comment - Parse an enable comment and return the list of rules (empty vec means all rules)