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,15 @@
warning: argument comment `/*api_base*/` does not match parameter `base_url`
--> $DIR/comment_mismatch.rs:9:44
|
LL | let _ = create_openai_url(/*api_base*/ None);
| ^^^^
|
= help: use `/*base_url*/`
note: the lint level is defined here
--> $DIR/comment_mismatch.rs:1:9
|
LL | #![warn(argument_comment_mismatch)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
warning: 1 warning emitted