Skip to content

Commit 21387e4

Browse files
committed
Add a ignore-tidy-todo to ignore the tidy TODO comment check
1 parent 5ac391e commit 21387e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/tidy/src/style.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ pub fn check(path: &Path, bad: &mut bool) {
444444
suppressible_tidy_err!(err, skip_cr, "CR character");
445445
}
446446
if filename != "style.rs" {
447-
if trimmed.contains("TODO") {
447+
if trimmed.contains("TODO") && !trimmed.contains("ignore-tidy-todo") {
448448
err(
449449
"TODO is used for tasks that should be done before merging a PR; If you want to leave a message in the codebase use FIXME",
450450
)

0 commit comments

Comments
 (0)