Add argument-comment Dylint runner (#14651)

This commit is contained in:
Michael Bolin
2026-03-14 08:18:04 -07:00
committed by GitHub
parent 70eddad6b0
commit 4b31848f5b
20 changed files with 2348 additions and 0 deletions

View 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);
}