From 71ace9f3c16a434385fc27b3e8bffb52deb6ccd1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 10 Feb 2025 11:20:36 +0100 Subject: [PATCH] checksrc.pl: warn on FIXME/TODO comments --- scripts/checksrc.pl | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.47.3