We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5497cfa commit 4b9e9fdCopy full SHA for 4b9e9fd
scripts/verify_rule_package_consistency.py
@@ -100,6 +100,11 @@
100
print(
101
f" - ERROR: Rule {rule_id} included in {package_name}.json but not marked as supportable in rules.csv.")
102
failed = True
103
+ for query in rule_details["queries"]:
104
+ if standard_name == "MISRA-C-2012" and not any(tag for tag in query["tags"] if tag.startswith("external/misra/c/2012/")):
105
+ print(
106
+ f" - ERROR: MISRA C 2012 query {query["name"]} for Rule {rule_id} in {package_name}.json is missing a `external/misra/c/2012/...` tag.")
107
+ failed = True
108
rules_csv_rule_ids = package_rules_from_csv[package_name]
109
110
json_missing_rules = rules_csv_rule_ids.difference(package_json_rule_ids)
0 commit comments