mirror of
https://github.com/openai/codex.git
synced 2026-05-04 05:11:37 +03:00
Add argument-comment Dylint runner (#14651)
This commit is contained in:
18
tools/argument-comment-lint/ui/uncommented_literal.rs
Normal file
18
tools/argument-comment-lint/ui/uncommented_literal.rs
Normal file
@@ -0,0 +1,18 @@
|
||||
#![warn(uncommented_anonymous_literal_argument)]
|
||||
|
||||
struct Client;
|
||||
|
||||
impl Client {
|
||||
fn set_flag(&self, enabled: bool) {}
|
||||
}
|
||||
|
||||
fn create_openai_url(base_url: Option<String>, retry_count: usize) -> String {
|
||||
let _ = (base_url, retry_count);
|
||||
String::new()
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let client = Client;
|
||||
let _ = create_openai_url(None, 3);
|
||||
client.set_flag(true);
|
||||
}
|
||||
Reference in New Issue
Block a user