mirror of
https://github.com/valitydev/SigmaHQ.git
synced 2024-11-06 09:25:17 +00:00
fix: no error on rules without references
This commit is contained in:
parent
8d91659c2a
commit
758f5039b5
@ -478,7 +478,7 @@ class TestRules(unittest.TestCase):
|
||||
references = self.get_rule_part(file_path=file, part_name="references")
|
||||
if not references:
|
||||
print(Fore.YELLOW + "Rule {} has no field 'references'.".format(file))
|
||||
faulty_rules.append(file)
|
||||
#faulty_rules.append(file)
|
||||
elif not isinstance(references, list):
|
||||
print(Fore.YELLOW + "Rule {} has a refences field that isn't a list.".format(file))
|
||||
faulty_rules.append(file)
|
||||
|
Loading…
Reference in New Issue
Block a user