From fb27f8d36f09e51e1988fb335e3fd9f34acb434e Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Mon, 22 Jan 2024 20:55:36 +0100 Subject: check_layout: Warn against whitespaces and "loc" --- check_layout.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'check_layout.py') diff --git a/check_layout.py b/check_layout.py index 067098d..96e9164 100644 --- a/check_layout.py +++ b/check_layout.py @@ -80,6 +80,8 @@ def check_layout(layout): "f10", "f11", "f12" ], "Layout contains function keys") unexpected_keys(keys, [""], "Layout contains empty strings") + unexpected_keys(keys, ["loc"], "Special keyword cannot be a symbol") + unexpected_keys(keys, filter(lambda k: k.strip()!=k, keys), "Some keys contain whitespaces") _, bottom_row_keys, _ = parse_row("res/xml/bottom_row.xml") -- cgit v1.2.3