Skip to main content

Module rule

Module rule 

Source
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§

Fix
LintWarning

Enums§

CrossFileScope
Declares what cross-file data a rule needs
FixCapability
Capability of a rule to fix issues
LintError
RuleCategory
Type of rule for selective processing
Severity

Traits§

Rule
Remove marker /// TRAIT_MARKER_V1
RuleExt
Extension trait to add downcasting capabilities to Rule

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)

Type Aliases§

LintResult