Skip to content

Commit

Permalink
Add a ignore-tidy-todo to ignore the tidy TODO comment check
Browse files Browse the repository at this point in the history
  • Loading branch information
tbu- committed Jun 11, 2024
1 parent 5ac391e commit 21387e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tools/tidy/src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ pub fn check(path: &Path, bad: &mut bool) {
suppressible_tidy_err!(err, skip_cr, "CR character");
}
if filename != "style.rs" {
if trimmed.contains("TODO") {
if trimmed.contains("TODO") && !trimmed.contains("ignore-tidy-todo") {
err(
"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",
)
Expand Down

0 comments on commit 21387e4

Please sign in to comment.