mirror of
https://github.com/verilator/verilator.git
synced 2026-09-08 10:33:20 +02:00
Tests: Check for carriage returns
This commit is contained in:
@@ -61,6 +61,10 @@ if (!-r "$root/.git") {
|
||||
}
|
||||
elsif ($line =~ m!^\+(.*)!) {
|
||||
++$lineno;
|
||||
if ($line =~ /\r/) {
|
||||
$summary = "File modification adds carriage return (remove them):" if !$summary;
|
||||
$warns{$file} = "File modification adds carriage return (remove them): $file:$lineno";
|
||||
}
|
||||
my $len = length($1);
|
||||
if ($len >= 100
|
||||
&& $file !~ /\.out$/) {
|
||||
|
||||
Reference in New Issue
Block a user