Nilesh Patra pushed to branch master at lintian / lintian
Commits:
-
2a33f080
by Andrius Merkys at 2024-06-11T19:24:01+00:00
1 changed file:
Changes:
| ... | ... | @@ -148,20 +148,17 @@ sub visit_patched_files { |
| 148 | 148 | |
| 149 | 149 | my @lines = split(/\n/, $item->bytes);
|
| 150 | 150 | my %line_length;
|
| 151 | - my %semicolon_count;
|
|
| 152 | 151 | |
| 153 | 152 | my $position = 1;
|
| 154 | 153 | for my $line (@lines) {
|
| 155 | 154 | |
| 156 | 155 | $line_length{$position} = length $line;
|
| 157 | - $semicolon_count{$position} = ($line =~ tr/;/;/);
|
|
| 158 | 156 | |
| 159 | 157 | } continue {
|
| 160 | 158 | ++$position;
|
| 161 | 159 | }
|
| 162 | 160 | |
| 163 | 161 | my $longest = max_by { $line_length{$_} } keys %line_length;
|
| 164 | - my $most = max_by { $semicolon_count{$_} } keys %semicolon_count;
|
|
| 165 | 162 | |
| 166 | 163 | return
|
| 167 | 164 | if !defined $longest || $line_length{$longest} <= $VERY_LONG_LINE_LENGTH;
|