Skip to content

Commit

Permalink
checksrc.pl: warn on FIXME/TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bagder committed Feb 10, 2025
1 parent 94c596b commit 71ace9f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/checksrc.pl
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,12 @@ sub scanfile {
$line, length($1) + 1, $file, $l,
"Missing space end comment end");
}

if($l =~ /(.*)(FIXME|TODO)/) {
checkwarn("FIXME",
$line, length($1), $file, $l,
"Avoid $2 comments. Add to documentation instead");
}
# ------------------------------------------------------------
# Above this marker, the checks were done on lines *including*
# comments
Expand Down

0 comments on commit 71ace9f

Please sign in to comment.