]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
check-format.pl: fix statistics on whitespace and nesting issues
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 30 Nov 2022 20:11:48 +0000 (21:11 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 8 Feb 2023 15:22:06 +0000 (16:22 +0100)
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19796)

util/check-format.pl

index 21ecaf0aa6561a5dcf1ec02585a70760aba9c03e..afae3d4a76c37ad3732a7a105353aa3888d5ff1b 100755 (executable)
@@ -301,14 +301,14 @@ sub report_flexibly {
     my $line = shift;
     my $msg = shift;
     my $contents = shift;
-    my $report_SPC = $msg =~ /space/;
+    my $report_SPC = $msg =~ /space|blank/;
     return if $report_SPC && $sloppy_SPC;
 
     print "$ARGV:$line:$msg:$contents" unless $self_test;
     $num_reports_line++;
     $num_reports++;
-    $num_indent_reports++ if $msg =~ m/indent/;
-    $num_nesting_issues++ if $msg =~ m/#if nesting/;
+    $num_indent_reports++ if $msg =~ m/:indent /;
+    $num_nesting_issues++ if $msg =~ m/ nesting indent /;
     $num_syntax_issues++  if $msg =~ m/unclosed|unexpected/;
     $num_SPC_reports++    if $report_SPC;
     $num_length_reports++ if $msg =~ m/length/;