fix: add TPL-008 check to main validation + fix 4 templates

The TPL-008 rule was only in the single-file validation path,
not in the full project validation. Added it to _validate_templates().

Fixed invalid block names:
- customers.html: page_scripts → extra_scripts
- notifications.html: page_scripts → extra_scripts
- test-vendors-users-migration.html: scripts → extra_scripts
- test-auth-flow.html: scripts → extra_scripts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-21 21:55:56 +01:00
parent acf8988386
commit 4672fc537b
5 changed files with 8 additions and 4 deletions

View File

@@ -2706,6 +2706,10 @@ class ArchitectureValidator:
if not is_base_or_partial and not is_macro and not is_components_page:
self._check_number_stepper_macro_usage(file_path, content, lines)
# TPL-008: Check for invalid block names
if not is_base_or_partial:
self._check_valid_block_names(file_path, content, lines)
# Skip base/partials for TPL-001 check
if is_base_or_partial:
continue