Look up @_lint_rules in the right dictionary

This commit is contained in:
Emil Lundberg 2023-11-02 14:59:44 +01:00
parent 677e950a61
commit a9a3ac7ecf
No known key found for this signature in database
GPG Key ID: 0F47E61493A9B8E5

View File

@ -99,7 +99,7 @@ with open(target, encoding='utf-8') as f:
strings = {k: v for k, v in values.items() if not k.startswith("@")}
print(target, f"- checking {len(strings)} strings")
lint_strings(strings, strings.get("@_lint_rules", {}))
lint_strings(strings, values.get("@_lint_rules", {}))
check_duplicate_values(strings)
if errors: