Re: [PATCH] Replace HTTP links with HTTPS ones: Documentation/process

From: Alexander A. Klimov
Date: Sun Jun 21 2020 - 14:09:58 EST




Am 21.06.20 um 19:42 schrieb Joe Perches:
On Sun, 2020-06-21 at 16:30 +0200, Alexander A. Klimov wrote:
Am 21.06.20 um 15:46 schrieb Miguel Ojeda:
On Sun, Jun 21, 2020 at 3:37 PM Alexander A. Klimov
<grandmaster@xxxxxxxxxxxx> wrote:
[]
Replace HTTP with HTTPS.
[]
W/o a
such central "rule on how to HTTPSify links"

Maybe:
---
scripts/checkpatch.pl | 6 ++++++
1 file changed, 6 insertions(+)

diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl
index 524df88f9364..4e49187a6137 100755
--- a/scripts/checkpatch.pl
+++ b/scripts/checkpatch.pl
@@ -3115,6 +3115,12 @@ sub process {
}
}
+# check for URLs using old http:// links, suggest https:
+ if ($rawline =~ m{^\+.*\bhttp://}) {
+ WARN("HTTP_URL",
+ "Prefer URLs using https: over http:\n" . $herecurr);
+ }
+
Good idea!

# discourage the use of boolean for type definition attributes of Kconfig options
if ($realfile =~ /Kconfig/ &&
$line =~ /^\+\s*\bboolean\b/) {