From 5730e5515f20ebfd59ef0c726b6079f3320d806e Mon Sep 17 00:00:00 2001 From: Yacine Elhamer Date: Wed, 23 Aug 2023 01:42:22 +0200 Subject: [PATCH] lint.py: update recommendation messages --- scripts/lint.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/lint.py b/scripts/lint.py index 0eae247e..9fcebdd0 100644 --- a/scripts/lint.py +++ b/scripts/lint.py @@ -163,7 +163,9 @@ class MissingScopes(Lint): class MissingStaticScope(Lint): name = "missing static scope" - recommendation = "Add a static scope for the rule (file, function, basic block, instruction, or unspecified)" + recommendation = ( + "Add a static scope for the rule (file, function, basic block, instruction, or unspecified/unsupported)" + ) def check_rule(self, ctx: Context, rule: Rule): return "static" not in rule.meta.get("scopes") @@ -171,7 +173,7 @@ class MissingStaticScope(Lint): class MissingDynamicScope(Lint): name = "missing dynamic scope" - recommendation = "Add a dynamic scope for the rule (file, process, thread, call, or unspecified)" + recommendation = "Add a dynamic scope for the rule (file, process, thread, call, or unspecified/unsupported)" def check_rule(self, ctx: Context, rule: Rule): return "dynamic" not in rule.meta.get("scopes")