From 4672fc537b5b2f28771419e9557526d86a0cd120 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sun, 21 Dec 2025 21:55:56 +0100 Subject: [PATCH] fix: add TPL-008 check to main validation + fix 4 templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- app/templates/admin/customers.html | 2 +- app/templates/admin/notifications.html | 2 +- app/templates/admin/test-auth-flow.html | 2 +- app/templates/admin/test-vendors-users-migration.html | 2 +- scripts/validate_architecture.py | 4 ++++ 5 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/templates/admin/customers.html b/app/templates/admin/customers.html index 55da8ff0..0352e8a6 100644 --- a/app/templates/admin/customers.html +++ b/app/templates/admin/customers.html @@ -240,6 +240,6 @@ {% endblock %} -{% block page_scripts %} +{% block extra_scripts %} {% endblock %} diff --git a/app/templates/admin/notifications.html b/app/templates/admin/notifications.html index 6e0c363c..5526572b 100644 --- a/app/templates/admin/notifications.html +++ b/app/templates/admin/notifications.html @@ -356,6 +356,6 @@ {% endblock %} -{% block page_scripts %} +{% block extra_scripts %} {% endblock %} diff --git a/app/templates/admin/test-auth-flow.html b/app/templates/admin/test-auth-flow.html index 4d049f26..06db2825 100644 --- a/app/templates/admin/test-auth-flow.html +++ b/app/templates/admin/test-auth-flow.html @@ -217,7 +217,7 @@ {% endblock %} -{% block scripts %} +{% block extra_scripts %}