pub fn validate_inline_config_rules(
content: &str,
flavor: MarkdownFlavor,
) -> Vec<InlineConfigWarning>Expand description
Validate all inline config comments in content and return warnings for unknown rules.
This function extracts rule names from all types of inline config comments
(disable, enable, disable-line, disable-next-line, disable-file, enable-file)
and validates them against the known rule alias map. Comments inside code
blocks or inline code spans are documentation rather than configuration, so
they are left alone, matching what InlineConfig applies. flavor is the
document’s own, which decides what its indentation means.