From: Dr. David von Oheimb Date: Wed, 30 Nov 2022 20:11:48 +0000 (+0100) Subject: check-format.pl: fix statistics on whitespace and nesting issues X-Git-Tag: openssl-3.2.0-alpha1~1305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee17148792943f7f6455213a3b9a86a4cc082c9a;p=thirdparty%2Fopenssl.git check-format.pl: fix statistics on whitespace and nesting issues Reviewed-by: Hugo Landau Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/19796) --- diff --git a/util/check-format.pl b/util/check-format.pl index 21ecaf0aa65..afae3d4a76c 100755 --- a/util/check-format.pl +++ b/util/check-format.pl @@ -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/;