mirror of
https://github.com/curl/curl.git
synced 2026-07-27 20:53:18 +03:00
mdlinkcheck: enable warnings, fix them
fix a typo that made this error never detected: ``` %s ERROR links to missing URL %s ```
This commit is contained in:
parent
1899e27e21
commit
9a5c861b41
1 changed files with 7 additions and 1 deletions
|
|
@ -23,6 +23,9 @@
|
|||
#
|
||||
###########################################################################
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
my %whitelist = (
|
||||
'https://curl.se/' => 1,
|
||||
'https://curl.se/changes.html' => 1,
|
||||
|
|
@ -70,6 +73,9 @@ my %whitelist = (
|
|||
|
||||
);
|
||||
|
||||
my %url;
|
||||
my %flink;
|
||||
|
||||
# list all .md files in the repo
|
||||
my @files=`git ls-files '**.md'`;
|
||||
|
||||
|
|
@ -146,7 +152,7 @@ for my $u (sort keys %url) {
|
|||
my $r = checkurl($u);
|
||||
|
||||
if($r) {
|
||||
for my $f (split(/ /, $url{$l})) {
|
||||
for my $f (split(/ /, $url{$u})) {
|
||||
printf "%s ERROR links to missing URL %s\n", $f, $u;
|
||||
$error++;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue