We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ignore-tidy-todo
1 parent bbe9a9c commit 39c3b86Copy full SHA for 39c3b86
src/tools/tidy/src/style.rs
@@ -444,7 +444,9 @@ pub fn check(path: &Path, bad: &mut bool) {
444
suppressible_tidy_err!(err, skip_cr, "CR character");
445
}
446
if filename != "style.rs" {
447
- if trimmed.contains("TODO") {
+ // Allow using TODO in diagnostic suggestions by marking the
448
+ // relevant line with `// ignore-tidy-todo`.
449
+ if trimmed.contains("TODO") && !trimmed.contains("ignore-tidy-todo") {
450
err(
451
"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",
452
)
0 commit comments