You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assetsStatic files, components defining or contributing to appearancequestionFor any kind of question, whether about usage, contributing or the project in generaltoolingTools, workflows, integrations etc. relevant to project maintenance, deployment, collaboration
I was wondering if there is a reason why we don't use djLint to lint but only to format-check templates (see also #1371).
I added workflows for both formatter and linter to TBF because I found the linter's suggestions for changes to APIS Core reasonable/mostly helpful for cleaner code when I tested it. The only rule I've ignored for now is H006, see acdh-oeaw/apis-instance-tbf@7ed3811.
Output for APIS Core, based on latest main (e14c806):
Linting 68/68 files ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 00:00
apis_core/apis_entities/templates/apis_core/apis_entities/e53_place_detail.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
T003 7:0 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
T003 23:0 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
apis_core/apis_relations/templates/apis_relations/_ajax_form.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
D018 2:2 (Django) Internal links should use the {% url ... %} pattern. <form action="
H033 2:2 Extra whitespace found in form action. <form action="
H033 2:2 Extra whitespace found in form action. <form action=" {% if
apis_core/apis_relations/templates/apis_relations/_ajax_form_generic.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
D018 2:2 (Django) Internal links should use the {% url ... %} pattern. <form action="
H033 2:2 Extra whitespace found in form action. <form action="
H033 2:2 Extra whitespace found in form action. <form action=" {% if
apis_core/apis_relations/templates/apis_relations/edit_button_generic_ajax_form.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
H025 8:0 Tag seems to be an orphan. </a>
apis_core/apis_relations/templates/apis_relations/relations_detail_generic.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
T003 4:29 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
apis_core/core/templates/base.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
H031 5:0 Consider adding meta keywords. <html lang="en"> <
T003 15:6 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
T003 68:4 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
H023 196:43 Do not use entity references. ×
T003 204:25 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
H006 223:16 Img tag should have height and width attributes. <img id="logo"
T003 254:4 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
apis_core/core/templates/partials/backtotopbtn.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
H023 13:8 Do not use entity references. ↑
apis_core/core/templates/partials/footer-left.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
H006 12:4 Img tag should have height and width attributes. <img src="{% static
H006 18:4 Img tag should have height and width attributes. <img src="{% static
apis_core/documentation/templates/documentation.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
T003 106:0 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
apis_core/generic/templates/generic/generic_enrich.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
T003 14:0 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
apis_core/generic/templates/generic/generic_merge.html
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
T003 42:0 Endblock should have name. Ex: {% endblock body %}. {% endblock %}
Linted 68 files, found 23 errors.
The text was updated successfully, but these errors were encountered:
koeaw
added
tooling
Tools, workflows, integrations etc. relevant to project maintenance, deployment, collaboration
assets
Static files, components defining or contributing to appearance
question
For any kind of question, whether about usage, contributing or the project in general
labels
Nov 12, 2024
assetsStatic files, components defining or contributing to appearancequestionFor any kind of question, whether about usage, contributing or the project in generaltoolingTools, workflows, integrations etc. relevant to project maintenance, deployment, collaboration
I was wondering if there is a reason why we don't use djLint to lint but only to format-check templates (see also #1371).
I added workflows for both formatter and linter to TBF because I found the linter's suggestions for changes to APIS Core reasonable/mostly helpful for cleaner code when I tested it. The only rule I've ignored for now is
H006
, see acdh-oeaw/apis-instance-tbf@7ed3811.Output for APIS Core, based on latest
main
(e14c806):The text was updated successfully, but these errors were encountered: