scripts: reduced false positives given by 'comments.pl'. given when declaring operator=
This commit is contained in:
parent
ca294544ca
commit
f838f89d01
|
@ -21,7 +21,7 @@ sub checkfile
|
||||||
# missing comment before variable declaration?
|
# missing comment before variable declaration?
|
||||||
if (($comment == 0) &&
|
if (($comment == 0) &&
|
||||||
($line =~ /^\s+([a-z]+)? [a-z]+(\s)+[a-z][a-z0-9]*\s*[;=]/) &&
|
($line =~ /^\s+([a-z]+)? [a-z]+(\s)+[a-z][a-z0-9]*\s*[;=]/) &&
|
||||||
(!($line =~ /return|delete/)))
|
(!($line =~ /return|delete|operator/)))
|
||||||
{
|
{
|
||||||
print "[$filename:$linenr] No comment before variable declaration\n";
|
print "[$filename:$linenr] No comment before variable declaration\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue