From 0b72aff084d5bc304ca2cfbc647cd8a8b4cdded1 Mon Sep 17 00:00:00 2001 From: phantinuss <79651203+phantinuss@users.noreply.github.com> Date: Tue, 10 May 2022 11:25:09 +0200 Subject: [PATCH] chore: test rules: check title has no . in the end --- tests/test_rules.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_rules.py b/tests/test_rules.py index c3d3af0c6..e5abc79d0 100755 --- a/tests/test_rules.py +++ b/tests/test_rules.py @@ -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():