Merge pull request #21405 from owen-mc/java/consistent-inline-expectation-tests

Inline expectation tests should always have space before and after `$`
This commit is contained in:
Owen Mansel-Chan
2026-03-05 11:27:37 +00:00
committed by GitHub
297 changed files with 5490 additions and 5458 deletions

View File

@@ -97,7 +97,7 @@ fn test_log(harmless: String, password: String, encrypted_password: String) {
info!("{}", m2); // $ Alert[rust/cleartext-logging]=m2
let m3 = format!("message = {}", password); // $ Source[rust/cleartext-logging]=m3
info!("{}", m3); // $ Alert[rust/cleartext-logging]=m3
info!("{}", m3); // $ Alert[rust/cleartext-logging]=m3
let mut m4 = String::new();
write!(&mut m4, "message = {}", password); // $ MISSING: Source=m4