[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <adf85348dcbfbf64157e6519115b3a0c9f35df55.camel@perches.com>
Date: Mon, 22 Jun 2020 10:29:20 -0700
From: Joe Perches <joe@...ches.com>
To: Miguel Ojeda <miguel.ojeda.sandonis@...il.com>,
Jonathan Corbet <corbet@....net>
Cc: "Alexander A. Klimov" <grandmaster@...klimov.de>,
Randy Dunlap <rdunlap@...radead.org>,
Tony Fischetti <tony.fischetti@...il.com>,
Chris Packham <chris.packham@...iedtelesis.co.nz>,
Mauro Carvalho Chehab <mchehab+samsung@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
"Jason A. Donenfeld" <Jason@...c4.com>,
Arnd Bergmann <arnd@...db.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Borislav Petkov <bp@...e.de>, Will Deacon <will@...nel.org>,
"Chang S. Bae" <chang.seok.bae@...el.com>,
Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@...el.com>,
Kees Cook <keescook@...omium.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Jacob Huisman <jacobhuisman@...nelthusiast.com>,
Federico Vaga <federico.vaga@...a.pv.it>,
Jonathan Neuschäfer <j.neuschaefer@....net>,
Konstantin Ryabitsev <konstantin@...uxfoundation.org>,
Linux Doc Mailing List <linux-doc@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: [PATCH] Replace HTTP links with HTTPS ones:
Documentation/process
On Mon, 2020-06-22 at 19:03 +0200, Miguel Ojeda wrote:
> On Mon, Jun 22, 2020 at 3:06 PM Jonathan Corbet <corbet@....net> wrote:
> > As has been noted elsewhere, checkpatch.pl seems like the appropriate
> > place to make this check. As for "the entire tree"...if this job gets
> > completed, "git grep" should be a fine way to do that.
>
> `checkpatch` is not really enforced in many subsystems, no? Further,
> some existing and future HTTP links may support HTTPS later on.
>
> As for `git grep`, agreed if we reach near 100%. Otherwise, no. In the
> general case, including the code for a task that has some likelihood
> of needing repetition is a safe bet, which is why I suggested it. The
> same script could be also used to check for broken links and related
> maintenance.
scripts/get_maintainer.pl --self-test=links has a reachability test
using wget.
Perhaps a script like that could be used for http:// vs https://
## Link reachability
} elsif (($type eq "W" || $type eq "Q" || $type eq "B") &&
$value =~ /^https?:/ &&
($self_test eq "" || $self_test =~ /\blinks\b/)) {
next if (grep(m@^\Q$value\E$@, @good_links));
my $isbad = 0;
if (grep(m@^\Q$value\E$@, @bad_links)) {
$isbad = 1;
} else {
my $output = `wget --spider -q --no-check-certificate --timeout 10 --tries 1 $value`;
if ($? == 0) {
push(@good_links, $value);
} else {
push(@bad_links, $value);
$isbad = 1;
}
}
if ($isbad) {
print("$x->{file}:$x->{linenr}: warning: possible bad link\t$x->{line}\n");
}
Powered by blists - more mailing lists