From f838f89d01a9a6b2721b8aa47fb6440e12bade00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 6 Jan 2011 12:42:02 +0100 Subject: [PATCH] scripts: reduced false positives given by 'comments.pl'. given when declaring operator= --- scripts/comment.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/comment.pl b/scripts/comment.pl index d6e851d1f..4c2a011c9 100755 --- a/scripts/comment.pl +++ b/scripts/comment.pl @@ -21,7 +21,7 @@ sub checkfile # missing comment before variable declaration? if (($comment == 0) && ($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"; }