docs(natu): clarify let-order locations
This commit is contained in:
@@ -56,7 +56,7 @@ impl std::fmt::Display for Report {
|
||||
finding.finding.expected_order.as_ref().expect("let order");
|
||||
writeln!(
|
||||
formatter,
|
||||
" bindings starting at line {start}: {}",
|
||||
" let whose first binding starts at line {start}: {}",
|
||||
expected_order.join(", ")
|
||||
)?;
|
||||
}
|
||||
|
||||
@@ -58,8 +58,8 @@ fn natu_reports_out_of_order_let_bindings() -> googletest::Result<()> {
|
||||
"testdata/lint_findings.nix:12 [manual_inherit_from] Use `inherit` for this selected attribute\n",
|
||||
"testdata/lint_findings.nix:13 [unquoted_uri] URI literals should be quoted\n",
|
||||
"testdata/lint_findings.nix [let_order] Let bindings must follow dependency order\n",
|
||||
" bindings starting at line 2: first, second, nested\n",
|
||||
" bindings starting at line 5: nestedSecond, nestedFirst\n",
|
||||
" let whose first binding starts at line 2: first, second, nested\n",
|
||||
" let whose first binding starts at line 5: nestedSecond, nestedFirst\n",
|
||||
))
|
||||
);
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user