From 9710396ed310540155b16af006a6cd6564d6184a Mon Sep 17 00:00:00 2001 From: MichiRecRoom <1008889+LikeLakers2@users.noreply.github.com> Date: Wed, 3 Jul 2024 16:57:04 -0400 Subject: [PATCH] Don't error on the includes file not including itself. --- tools/ticked_file_enforcement/ticked_file_enforcement.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/ticked_file_enforcement/ticked_file_enforcement.py b/tools/ticked_file_enforcement/ticked_file_enforcement.py index b4b1e4f1160f..c1d30ccdccff 100644 --- a/tools/ticked_file_enforcement/ticked_file_enforcement.py +++ b/tools/ticked_file_enforcement/ticked_file_enforcement.py @@ -274,6 +274,8 @@ def get_base_scanning_directory_file_list(): # Is the includes file missing any includes? This is an error if it does. missing_includes = files_within_scanned_directory - includes_found_set +# Make sure we don't check for the includes file itself. +missing_includes.discard(includes_file) if len(missing_includes) != 0: tfe_has_failed = True for file_path in missing_includes: