mirror of
https://github.com/openai/codex.git
synced 2026-04-29 19:03:02 +03:00
Add argument-comment Dylint runner (#14651)
This commit is contained in:
12
tools/argument-comment-lint/ui/comment_matches.rs
Normal file
12
tools/argument-comment-lint/ui/comment_matches.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
#![warn(argument_comment_mismatch)]
|
||||
|
||||
fn create_openai_url(base_url: Option<String>, retry_count: usize) -> String {
|
||||
let _ = (base_url, retry_count);
|
||||
String::new()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let base_url = Some(String::from("https://api.openai.com"));
|
||||
create_openai_url(base_url, 3);
|
||||
create_openai_url(/*base_url*/ None, 3);
|
||||
}
|
||||
Reference in New Issue
Block a user