From 77a53121e0a1a7074c7a0fb4f623ed8dcac04727 Mon Sep 17 00:00:00 2001 From: joeybadz Date: Sat, 18 Apr 2026 16:52:20 -0400 Subject: [PATCH] Handle module attributes in checkrefs Prevents GUI modules from being incorrectly reported as unused files Fixes #8147 --- source/tools/entity/checkrefs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/tools/entity/checkrefs.py b/source/tools/entity/checkrefs.py index c9591f0d88..05b2e7f196 100755 --- a/source/tools/entity/checkrefs.py +++ b/source/tools/entity/checkrefs.py @@ -711,6 +711,8 @@ class CheckRefs: for script in root_xml.findall("script"): if script.get("file"): self.deps.append((fp, Path(script.get("file")))) + if script.get("module"): + self.deps.append((fp, Path(script.get("module")))) if script.get("directory"): # If including an entire directory, find all the *.js files self.deps.extend(