doc lint: emit errors on STDERR

Have all of the scripts invoked by "make check-docs" emit their output on STDERR. This does not currently matter due to the way we're invoking them, but will in a subsequent change. It's a good idea to do this in any case for consistency with other tools we invoke. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Oct 15, 2021 at 14:39 UTC f005593dc313084675aebda4de02743c02ac409a
3 files changed +4 -4
Documentation/lint-gitlink.perl
+2 -2
@@ -30,8 +30,8 @@ sub report {
30 my ($pos, $line, $target, $msg) = @_;
31 substr($line, $pos) = "' <-- HERE";
32 $line =~ s/^\s+//;
33 - print "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
34 - print "$ARGV:$.:\t'$line\n";
33 + print STDERR "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
34 + print STDERR "$ARGV:$.:\t'$line\n";
35 $exit_code = 1;
36 }
37
Documentation/lint-man-end-blurb.perl
+1 -1
@@ -6,7 +6,7 @@ use warnings;
6 my $exit_code = 0;
7 sub report {
8 my ($target, $msg) = @_;
9 - print "error: $target: $msg\n";
9 + print STDERR "error: $target: $msg\n";
10 $exit_code = 1;
11 }
12
Documentation/lint-man-section-order.perl
+1 -1
@@ -46,7 +46,7 @@ my $SECTION_RX = do {
46 my $exit_code = 0;
47 sub report {
48 my ($msg) = @_;
49 - print "$ARGV:$.: $msg\n";
49 + print STDERR "$ARGV:$.: $msg\n";
50 $exit_code = 1;
51 }
52