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:
Brent Westbrook 2025-07-11 08:55:51 -04:00 committed by GitHub
parent 25c4295564
commit 6908e2682f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -5723,6 +5723,7 @@ match 42: # invalid-syntax
filters => vec![
(tempdir_filter(&tempdir).as_str(), "[TMP]/"),
(r#""[^"]+\\?/?input.py"#, r#""[TMP]/input.py"#),
(ruff_linter::VERSION, "[VERSION]"),
]
}, {
assert_cmd_snapshot!(

View File

@ -132,7 +132,7 @@ exit_code: 1
}
}
],
"version": "0.12.2"
"version": "[VERSION]"
}
}
}