feat(xatu): add manual inherit from lint

This commit was merged in pull request #87.
This commit is contained in:
2026-09-19 23:30:56 -04:00
parent 4b7d3834ab
commit f9aff6839e
9 changed files with 105 additions and 11 deletions

View File

@@ -77,3 +77,16 @@ fn xatu_reports_manual_inherit() -> googletest::Result<()> {
expect_that!(manual_inherit_count, eq(1));
Ok(())
}
#[gtest]
fn xatu_reports_manual_inherit_from() -> googletest::Result<()> {
let report = xatu::future_sight(vec![fixture_source("testdata/lint_findings.nix")?]).or_fail()?;
let manual_inherit_from_count = report
.diagnostics
.iter()
.filter(|diagnostic| diagnostic.finding.rule_id == "manual_inherit_from")
.count();
expect_that!(manual_inherit_from_count, eq(1));
Ok(())
}