[tor-commits] [tor/master] checkSpace: permit wide lines for LCOV_EXCL

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


commit 5fa62fffee1972093798ed356884ef331dcd4ecc
Author: Nick Mathewson <nickm at torproject.org>
Date:   Thu Feb 6 16:24:36 2020 -0500

    checkSpace: permit wide lines for LCOV_EXCL
    
    We're telling clang-format that a line with LCOV_EXCL must not be
    split -- that's fine, but we shouldn't complain when it indents it.
---
 scripts/maint/checkSpace.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl
index 27615f910..857ce6f6f 100755
--- a/scripts/maint/checkSpace.pl
+++ b/scripts/maint/checkSpace.pl
@@ -130,7 +130,7 @@ for my $fn (@ARGV) {
         ## Terminals are still 80 columns wide in my world.  I refuse to
         ## accept double-line lines.
         #   (Don't make lines wider than 80 characters, including newline.)
-        if (/^.{80}/) {
+        if (/^.{80}/ and not /LCOV_EXCL/) {
             msg "Wide:$fn:$.\n";
         }
         ### Juju to skip over comments and strings, since the tests





More information about the tor-commits mailing list