From ae92b15dfec13b3a7629d6c6d04e0e5cf229d29a Mon Sep 17 00:00:00 2001 From: Ivanq Date: Fri, 2 Apr 2021 16:22:47 +0300 Subject: [PATCH] Add asterisk check to check-signatures-format.py --- _data/signed/The_Quantum_Alpha.yaml | 2 +- check-signatures-format.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/_data/signed/The_Quantum_Alpha.yaml b/_data/signed/The_Quantum_Alpha.yaml index c4f57cfeb..e1f752c11 100644 --- a/_data/signed/The_Quantum_Alpha.yaml +++ b/_data/signed/The_Quantum_Alpha.yaml @@ -1,2 +1,2 @@ -name: The Quantum Alpha (*Private*) +name: The Quantum Alpha (Private) link: https://gitlab.com/The_Quantum_Alpha diff --git a/check-signatures-format.py b/check-signatures-format.py index d67e07792..0a27e810f 100644 --- a/check-signatures-format.py +++ b/check-signatures-format.py @@ -75,6 +75,9 @@ for file_name in sorted(os.listdir("_data/signed")): report(f"{file_name} contains an empty '{key}:' on line {i + 1}, please fix this.") continue + if "*" in value: + report(f"{file_name} contains an asterisk on line {i + 1}. The signatures are not rendered as Markdown, so formatting won't work. Please remove the asterisk.") + if key.lower() in existing_keys: report(f"{file_name} contains duplicate key '{key}'.") existing_keys[key.lower()] = i