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
djLint linter show errors if I break the rules H006 and H017 inside comments, not in templates.
I think that inside the comments, templates creator can write whatever he wants, and djLint should look for errors as H006 and H017 in the templates, not inside the comments.
{# [INFO][JINJA] I use syntax “{% if <img alt=\""”, if I want that something happened solely if “img” exists in the content of my articles #}
<scriptsrc="KiraJS.js"defer></script>
2.2. Desired behavior
No errors
2.3. Current behavior
D:\SashaDebugging\KiraDJLintDebuging>djlint --profile=jinja --lint KiraDJLint__incorrect-img-syntax-in-comments--H006-H017.html
Linting 1/1 files ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 00:00
SashaDebugging\KiraDJLintDebuging\KiraDJLint__incorrect-img-syntax-in-comments--H006-H017.html
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── H006 1:37 Img tag should have height and width attributes. <img alt=\""”, if I
H017 1:37 Tag should be self closing. <img alt=\""”, if I
Linted 1 file, found 2 errors.
## [1.11.1](v1.11.0...v1.11.1) (2022-08-22)
### Bug Fixes
* **formatter:** fixed runaway regex on templates with many template attriutes inside html tags ([79cd013](79cd013)), closes [#340](#340)
* **linter:** fixed false positive on T032 with jinja multi line set ([f9dac86](f9dac86)), closes [#342](#342)
* **linter:** fixed false postive on rule H008 ([79618a5](79618a5)), closes [#339](#339)
* **linter:** prevent linter matches that overlap ignored blocks of code such as comments ([90cf576](90cf576)), closes [#343](#343)
1. Summary
djLint linter show errors if I break the rules H006 and H017 inside comments, not in templates.
I think that inside the comments, templates creator can write whatever he wants, and djLint should look for errors as H006 and H017 in the templates, not inside the comments.
2. MCVE
2.1. File to check
KiraDJLint__incorrect-img-syntax-in-comments--H006-H017.html
:2.2. Desired behavior
No errors
2.3. Current behavior
3. Environment
4. Checkbox
Thanks.
The text was updated successfully, but these errors were encountered: