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:
@@ -240,6 +240,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_scripts %}
|
{% block extra_scripts %}
|
||||||
<script src="{{ url_for('static', path='admin/js/customers.js') }}"></script>
|
<script src="{{ url_for('static', path='admin/js/customers.js') }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -356,6 +356,6 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_scripts %}
|
{% block extra_scripts %}
|
||||||
<script src="{{ url_for('static', path='admin/js/notifications.js') }}"></script>
|
<script src="{{ url_for('static', path='admin/js/notifications.js') }}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -217,7 +217,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block extra_scripts %}
|
||||||
<script>
|
<script>
|
||||||
function authFlowTest() {
|
function authFlowTest() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -138,7 +138,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block scripts %}
|
{% block extra_scripts %}
|
||||||
<script>
|
<script>
|
||||||
function migrationTest() {
|
function migrationTest() {
|
||||||
return {
|
return {
|
||||||
|
|||||||
@@ -2706,6 +2706,10 @@ class ArchitectureValidator:
|
|||||||
if not is_base_or_partial and not is_macro and not is_components_page:
|
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)
|
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
|
# Skip base/partials for TPL-001 check
|
||||||
if is_base_or_partial:
|
if is_base_or_partial:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user