mirror of https://github.com/astral-sh/ruff
Filter `ruff_linter::VERSION` out of SARIF output tests (#19280)
Summary
--
Fixes the test failures in #19279. This is the same variable used to
construct the SARIF output:
350d563c88/crates/ruff_linter/src/message/sarif.rs (L39-L44)
Test Plan
--
Existing tests with the modified filter
This commit is contained in:
parent
25c4295564
commit
6908e2682f
|
|
@ -5723,6 +5723,7 @@ match 42: # invalid-syntax
|
||||||
filters => vec![
|
filters => vec![
|
||||||
(tempdir_filter(&tempdir).as_str(), "[TMP]/"),
|
(tempdir_filter(&tempdir).as_str(), "[TMP]/"),
|
||||||
(r#""[^"]+\\?/?input.py"#, r#""[TMP]/input.py"#),
|
(r#""[^"]+\\?/?input.py"#, r#""[TMP]/input.py"#),
|
||||||
|
(ruff_linter::VERSION, "[VERSION]"),
|
||||||
]
|
]
|
||||||
}, {
|
}, {
|
||||||
assert_cmd_snapshot!(
|
assert_cmd_snapshot!(
|
||||||
|
|
|
||||||
|
|
@ -132,7 +132,7 @@ exit_code: 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "0.12.2"
|
"version": "[VERSION]"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue