From: Daniel Stenberg Date: Mon, 10 Feb 2025 10:20:36 +0000 (+0100) Subject: checksrc.pl: warn on FIXME/TODO comments X-Git-Tag: curl-8_12_1~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=71ace9f3c16a434385fc27b3e8bffb52deb6ccd1;p=thirdparty%2Fcurl.git checksrc.pl: warn on FIXME/TODO comments --- diff --git a/scripts/checksrc.pl b/scripts/checksrc.pl index 876265a53e..8289c14c5c 100755 --- a/scripts/checksrc.pl +++ b/scripts/checksrc.pl @@ -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