Skip to content

Commit

Permalink
check-quotes: detect too wide quote lines and error out
Browse files Browse the repository at this point in the history
To help us detect these in CI jobs

Closes curl#423
  • Loading branch information
bagder committed Jan 13, 2024
1 parent bec1915 commit aba91d8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/check-quotes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ sub check {
print STDERR "$f:$l:1: uses $1, not 4-space indent\n";
$errors++;
}
elsif(/^ / && (length($_)>79)) {
print STDERR "$f:$l:1: woo wide quoted line, please wrap\n";
$errors++;
}
$l++;
}
close(F);
Expand Down

0 comments on commit aba91d8

Please sign in to comment.