mirror of
https://github.com/curl/curl.git
synced 2026-08-25 07:43:32 +03:00
checksrc.pl: warn on FIXME/TODO comments
This commit is contained in:
parent
94c596bbc5
commit
71ace9f3c1
1 changed files with 6 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue