mirror of
https://github.com/mandiant/capa.git
synced 2025-12-12 15:49:46 -08:00
lint: use meta.authors
This commit is contained in:
@@ -54,7 +54,7 @@ META_KEYS = (
|
||||
"maec/malware-family",
|
||||
"maec/malware-category",
|
||||
"maec/malware-category-ov",
|
||||
"author",
|
||||
"authors",
|
||||
"description",
|
||||
"lib",
|
||||
"scope",
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user