Browse Source

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>
maint
Ævar Arnfjörð Bjarmason 3 years ago committed by Junio C Hamano
parent
commit
f005593dc3
  1. 4
      Documentation/lint-gitlink.perl
  2. 2
      Documentation/lint-man-end-blurb.perl
  3. 2
      Documentation/lint-man-section-order.perl

4
Documentation/lint-gitlink.perl

@ -30,8 +30,8 @@ sub report { @@ -30,8 +30,8 @@ sub report {
my ($pos, $line, $target, $msg) = @_;
substr($line, $pos) = "' <-- HERE";
$line =~ s/^\s+//;
print "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
print "$ARGV:$.:\t'$line\n";
print STDERR "$ARGV:$.: error: $target: $msg, shown with 'HERE' below:\n";
print STDERR "$ARGV:$.:\t'$line\n";
$exit_code = 1;
}


2
Documentation/lint-man-end-blurb.perl

@ -6,7 +6,7 @@ use warnings; @@ -6,7 +6,7 @@ use warnings;
my $exit_code = 0;
sub report {
my ($target, $msg) = @_;
print "error: $target: $msg\n";
print STDERR "error: $target: $msg\n";
$exit_code = 1;
}


2
Documentation/lint-man-section-order.perl

@ -46,7 +46,7 @@ my $SECTION_RX = do { @@ -46,7 +46,7 @@ my $SECTION_RX = do {
my $exit_code = 0;
sub report {
my ($msg) = @_;
print "$ARGV:$.: $msg\n";
print STDERR "$ARGV:$.: $msg\n";
$exit_code = 1;
}


Loading…
Cancel
Save