From: Nick Mathewson Date: Thu, 6 Feb 2020 21:24:36 +0000 (-0500) Subject: checkSpace: permit wide lines for LCOV_EXCL X-Git-Tag: tor-0.4.5.0-alpha-dev~160^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fa62fffee1972093798ed356884ef331dcd4ecc;p=thirdparty%2Ftor.git 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. --- diff --git a/scripts/maint/checkSpace.pl b/scripts/maint/checkSpace.pl index 27615f910c..857ce6f6f1 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