Skip to content

Commit

Permalink
check-format.pl: fix statistics on whitespace and nesting issues
Browse files Browse the repository at this point in the history
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com>
(Merged from #20254)
  • Loading branch information
DDvO committed Mar 14, 2023
1 parent d327f7c commit 2bdc60c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/check-format.pl
Expand Up @@ -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/;
Expand Down

0 comments on commit 2bdc60c

Please sign in to comment.