gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 184/256: checksrc: detect and warn for lack of spac


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 184/256: checksrc: detect and warn for lack of spaces next to plus signs
Date: Fri, 06 Oct 2017 19:44:35 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit ca86006debc4570bbb3eacb71965c9d59be14084
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat Sep 9 23:54:47 2017 +0200

    checksrc: detect and warn for lack of spaces next to plus signs
---
 lib/checksrc.pl | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/lib/checksrc.pl b/lib/checksrc.pl
index f4ffa1ef3..3d3e51641 100755
--- a/lib/checksrc.pl
+++ b/lib/checksrc.pl
@@ -542,6 +542,19 @@ sub scanfile {
                       "no space before equals sign");
         }
 
+        # check for plus signs without spaces next to it
+        if($nostr =~ /(.*)[^+]\+[a-z0-9]/i) {
+            checkwarn("PLUSNOSPACE",
+                      $line, length($1)+1, $file, $ol,
+                      "no space after plus sign");
+        }
+        # check for plus sign without spaces before it
+        elsif($nostr =~ /(.*)[a-z0-9]\+[^+]/i) {
+            checkwarn("NOSPACEPLUS",
+                      $line, length($1)+1, $file, $ol,
+                      "no space before plus sign");
+        }
+
         $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]