mirror of
https://github.com/openai/codex.git
synced 2026-09-11 20:36:49 +00:00
## 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
18 lines
457 B
Rust
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,
|
|
);
|
|
}
|