chore: test rules: check title has no . in the end

This commit is contained in:
phantinuss
2022-05-10 11:25:09 +02:00
parent b4fdb13e8a
commit 0b72aff084
+3
View File
@@ -667,6 +667,9 @@ class TestRules(unittest.TestCase):
if title.startswith("Detects "):
print(Fore.RED + "Rule {} has a title that starts with 'Detects'".format(file))
faulty_rules.append(file)
if title.endswith("."):
print(Fore.RED + "Rule {} has a title that ends with '.'".format(file))
faulty_rules.append(file)
wrong_casing = []
for word in title.split(" "):
if word.islower() and not word.lower() in allowed_lowercase_words and not "." in word and not "/" in word and not word[0].isdigit():