Loading lib/checksrc.pl +5 −0 Original line number Original line Diff line number Diff line Loading @@ -143,6 +143,11 @@ sub scanfile { checkwarn($line, length($1), $file, $l, "Trailing whitespace"); checkwarn($line, length($1), $file, $l, "Trailing whitespace"); } } # crude attempt to detect // comments without too many false # positives if($l =~ /^([^"\*]*)[^:"]\/\//) { checkwarn($line, length($1), $file, $l, "\/\/ comment"); } # check spaces after for/if/while # check spaces after for/if/while if($l =~ /^(.*)(for|if|while) \(/) { if($l =~ /^(.*)(for|if|while) \(/) { if($1 =~ / *\#/) { if($1 =~ / *\#/) { Loading lib/checksrc.whitelist +1 −0 Original line number Original line Diff line number Diff line Loading @@ -8,3 +8,4 @@ return fopen(file, "r"); /* VMS */ return fopen(file, "r"); /* VMS */ return fopen(file, "r", "rfm=stmlf", "ctx=stm"); return fopen(file, "r", "rfm=stmlf", "ctx=stm"); curl_memlog("FILE %s:%d fopen(\"%s\",\"%s\") = %p\n", curl_memlog("FILE %s:%d fopen(\"%s\",\"%s\") = %p\n", a URL as file://localhost//foo must be valid as well, to refer to Loading
lib/checksrc.pl +5 −0 Original line number Original line Diff line number Diff line Loading @@ -143,6 +143,11 @@ sub scanfile { checkwarn($line, length($1), $file, $l, "Trailing whitespace"); checkwarn($line, length($1), $file, $l, "Trailing whitespace"); } } # crude attempt to detect // comments without too many false # positives if($l =~ /^([^"\*]*)[^:"]\/\//) { checkwarn($line, length($1), $file, $l, "\/\/ comment"); } # check spaces after for/if/while # check spaces after for/if/while if($l =~ /^(.*)(for|if|while) \(/) { if($l =~ /^(.*)(for|if|while) \(/) { if($1 =~ / *\#/) { if($1 =~ / *\#/) { Loading
lib/checksrc.whitelist +1 −0 Original line number Original line Diff line number Diff line Loading @@ -8,3 +8,4 @@ return fopen(file, "r"); /* VMS */ return fopen(file, "r"); /* VMS */ return fopen(file, "r", "rfm=stmlf", "ctx=stm"); return fopen(file, "r", "rfm=stmlf", "ctx=stm"); curl_memlog("FILE %s:%d fopen(\"%s\",\"%s\") = %p\n", curl_memlog("FILE %s:%d fopen(\"%s\",\"%s\") = %p\n", a URL as file://localhost//foo must be valid as well, to refer to