[tor-commits] [tor/master] checkSpace: remove the nosplabel test.

nickm at torproject.org nickm at torproject.org
Thu Mar 5 13:25:48 UTC 2020


commit f1d371bf32d33cee95df1b13daa43686f81d94ef
Author: Nick Mathewson <nickm at torproject.org>
Date:   Tue Dec 17 13:58:01 2019 -0500

    checkSpace: remove the nosplabel test.
---
 scripts/maint/checkSpace.pl                 | 6 +++---
 scripts/maint/checkspace_tests/expected.txt | 1 -
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl
index f4e6f733c..96a256968 100755
--- a/scripts/maint/checkSpace.pl
+++ b/scripts/maint/checkSpace.pl
@@ -58,9 +58,9 @@ for my $fn (@ARGV) {
         }
         ## Warn about labels that don't have a space in front of them
         #    (We indent every label at least one space)
-        if (/^[a-zA-Z_][a-zA-Z_0-9]*:/) {
-            msg "nosplabel:$fn:$.\n";
-        }
+        #if (/^[a-zA-Z_][a-zA-Z_0-9]*:/) {
+        #    msg "nosplabel:$fn:$.\n";
+        #}
         ## Warn about trailing whitespace.
         #    (We don't allow whitespace at the end of the line; make your
         #    editor highlight it for you so you can stop adding it in.)
diff --git a/scripts/maint/checkspace_tests/expected.txt b/scripts/maint/checkspace_tests/expected.txt
index 935b750ef..38595ed37 100644
--- a/scripts/maint/checkspace_tests/expected.txt
+++ b/scripts/maint/checkspace_tests/expected.txt
@@ -5,7 +5,6 @@
    tp fn():./dubious.c:15
       Wide:./dubious.c:17
        TAB:./dubious.c:24
- nosplabel:./dubious.c:26
         CR:./dubious.c:30
  Space at EOL:./dubious.c:32
  non-K&R {:./dubious.c:39





More information about the tor-commits mailing list