diff --git a/ops/work/web/check_webui.py b/ops/work/web/check_webui.py index 18c1605..6d562c2 100644 --- a/ops/work/web/check_webui.py +++ b/ops/work/web/check_webui.py @@ -17,7 +17,10 @@ def main(): apis = sorted(set(re.findall(r"SVC\.(\w+)", s))) problems = [] - for h in sorted(handlers): + JS_KEYWORDS = {" if\, eturn\, \event\, his\, lert\, \window\} + for h in sorted(handlers): + if h in JS_KEYWORDS: + continue if h not in defs: problems.append("обработчик без функции: " + h) for u in sorted(used):