From f923a4ea9bce5de63197c82ae41279cccb6779f3 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Tue, 5 Apr 2022 12:24:41 -0600 Subject: [PATCH] linter: accept instruction scope --- scripts/lint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lint.py b/scripts/lint.py index f3f16164..0df29155 100644 --- a/scripts/lint.py +++ b/scripts/lint.py @@ -161,10 +161,10 @@ class MissingScope(Lint): class InvalidScope(Lint): name = "invalid scope" - recommendation = "Use only file, function, or basic block rule scopes" + recommendation = "Use only file, function, basic block, or instruction rule scopes" def check_rule(self, ctx: Context, rule: Rule): - return rule.meta.get("scope") not in ("file", "function", "basic block") + return rule.meta.get("scope") not in ("file", "function", "basic block", "instruction") class MissingAuthor(Lint):