lint: use meta.authors

This commit is contained in:
Willi Ballenthin
2022-05-26 12:02:47 -06:00
parent 9236a36ef4
commit 4ae4bab254
2 changed files with 3 additions and 3 deletions

View File

@@ -54,7 +54,7 @@ META_KEYS = (
"maec/malware-family",
"maec/malware-category",
"maec/malware-category-ov",
"author",
"authors",
"description",
"lib",
"scope",

View File

@@ -170,10 +170,10 @@ class InvalidScope(Lint):
class MissingAuthor(Lint):
name = "missing author"
recommendation = "Add meta.author so that users know who to contact with questions"
recommendation = "Add meta.authors so that users know who to contact with questions"
def check_rule(self, ctx: Context, rule: Rule):
return "author" not in rule.meta
return "authors" not in rule.meta
class MissingExamples(Lint):