feat(xatu): add manual inherit from lint

This commit is contained in:
2026-09-19 23:25:26 -04:00
parent 4b7d3834ab
commit acb91e9435
9 changed files with 105 additions and 11 deletions

View File

@@ -1,9 +1,11 @@
use crate::FileId;
use crate::ast;
use crate::rules::manual_inherit::ManualInherit;
use crate::rules::manual_inherit_from::ManualInheritFrom;
use crate::rules::unquoted_uri::UnquotedUri;
pub mod manual_inherit;
pub mod manual_inherit_from;
pub mod unquoted_uri;
#[derive(Debug)]
@@ -51,7 +53,12 @@ pub fn run_rules(file: &ast::ParsedFile) -> Vec<Diagnostic> {
let node_diagnostics = file
.nodes
.iter()
.flat_map(|node| [run_node_rule::<ManualInherit>(node)])
.flat_map(|node| {
[
run_node_rule::<ManualInherit>(node),
run_node_rule::<ManualInheritFrom>(node),
]
})
.flatten();
let token_diagnostics = file
.tokens