Files
codex/tools/argument-comment-lint/ui/comment_matches_multiline.rs
Adam Perry @ OpenAI 9127f21890 Test repository-wide Rust formatter discovery (#41925)
## What changed

- Exercise Rust source discovery through a mocked `git ls-files` call, including files outside `codex-rs`, paths containing spaces, and stale entries that no longer exist.
- Assert that the formatter invokes `rustfmt` from `codex-rs` with the repository configuration in both format and check modes.
- Keep the multiline argument-comment lint fixture stable under formatting and update affected Rust test files to the expected style.

GitOrigin-RevId: 0cfffde1bb91bf620d2118bed1efc68466c0cca6
2026-08-31 22:47:53 +00:00

18 lines
457 B
Rust

#![warn(argument_comment_mismatch)]
#![warn(uncommented_anonymous_literal_argument)]
fn run_git_for_stdout(repo_root: &str, args: Vec<&str>, env: Option<&str>) -> String {
let _ = (repo_root, args, env);
String::new()
}
// Keep the call split across lines so this fixture tests multiline arguments.
#[rustfmt::skip]
fn main() {
let _ = run_git_for_stdout(
"/tmp/repo",
vec!["rev-parse", "HEAD"],
/*env*/ None,
);
}