Add asterisk check to check-signatures-format.py

This commit is contained in:
Ivanq 2021-04-02 16:22:47 +03:00
parent cbe2dd8830
commit ae92b15dfe
2 changed files with 4 additions and 1 deletions

View File

@ -1,2 +1,2 @@
name: The Quantum Alpha (*Private*)
name: The Quantum Alpha (Private)
link: https://gitlab.com/The_Quantum_Alpha

View File

@ -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