gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 186/256: checksrc: verify space after semicolons


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 186/256: checksrc: verify space after semicolons
Date: Fri, 06 Oct 2017 19:44:37 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 67ade28571da2ac688d6edeb26f3abfb4f4ae3e8
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Sep 11 09:25:31 2017 +0200

    checksrc: verify space after semicolons
---
 lib/checksrc.pl | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index 3d3e51641..535e3d9f5 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -61,6 +61,7 @@ my %warnings = (
     'ASSIGNWITHINCONDITION'  => 'assignment within conditional expression',
     'EQUALSNOSPACE'    => 'equals sign without following space',
     'NOSPACEEQUALS'    => 'equals sign without preceeding space',
+    'SEMINOSPACE'      => 'semicolon without following space',
     );
 
 sub readwhitelist {
@@ -555,6 +556,13 @@ sub scanfile {
                       "no space before plus sign");
         }
 
+        # check for semicolons without space next to it
+        if($nostr =~ /(.*)\;[a-z0-9]/i) {
+            checkwarn("SEMINOSPACE",
+                      $line, length($1)+1, $file, $ol,
+                      "no space after semilcolon");
+        }
+
         $line++;
         $prevl = $ol;
     }

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]