feat(xatu): add let order rule #88

Closed
alexion wants to merge 5 commits from xatu-let-order into main
4 changed files with 6 additions and 7 deletions
Showing only changes of commit a42a9c7064 - Show all commits

View File

@@ -33,7 +33,6 @@ rust_test(
data = [
"testdata/clean.nix",
"testdata/invalid.nix",
"testdata/let_order.nix",
"testdata/lint_findings.nix",
],
deps = [

View File

@@ -1,4 +0,0 @@
let
support = "support";
primary = support;
in primary

View File

@@ -1,5 +1,9 @@
{
let
support = "support";
primary = support;
in {
package = package;
from = pkgs.from;
url = https://example.com;
ordered = primary;
}

View File

@@ -67,7 +67,7 @@ fn xatu_reports_unquoted_uri() -> googletest::Result<()> {
#[gtest]
fn xatu_reports_let_order() -> googletest::Result<()> {
let report = xatu::future_sight(vec![fixture_source("testdata/let_order.nix")?]).or_fail()?;
let report = xatu::future_sight(vec![fixture_source("testdata/lint_findings.nix")?]).or_fail()?;
let let_order_diagnostics = report
.diagnostics