diff --git a/.github/scripts/check_gd_nomenclature.py b/.github/scripts/check_gd_nomenclature.py index f164ee32..010c6214 100644 --- a/.github/scripts/check_gd_nomenclature.py +++ b/.github/scripts/check_gd_nomenclature.py @@ -60,6 +60,11 @@ for root, dirs, files in os.walk('.', topdown=True): name = m.group(1) if not SNAKE_CASE.match(name): issues.append((path, idx, 'signal', name)) + m = re.match(r"for\s+([A-Za-z0-9_]+)(?:\s*:\s*[^\s]+)?\s+in\b", stripped) + if m: + name = m.group(1) + if not SNAKE_CASE.match(name): + issues.append((path, idx, 'variable', name)) if issues: print('GDScript naming issues found:')