-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug(H006): not possible to ignore if use HTML comment syntax or ignoring comments inside a tag #344
Comments
@Kristinita Thanks, I can't get this to reproduce. I tested with Windows 10, Python 3.10, and djlint 1.11.1. I also try with ubuntu + python3.8 + djlint 3.11.1 and osx with py 3.9 + djlint 1.11.1. Can either of you help with more debugging? Specifically, I'm interesting in what is going on in On line 122 can you add In Thanks! |
Status: Partially fixed 🌔 1. Summary@christopherpickering , for djLint 1.11.1 I can’t reproduce problems in examples 1, 2 and 4. Thanks! But I still get H006 error for the example 3 on my machine. 2. Circle CI Ubuntu testingI reproduce the problem on the Circle CI Ubuntu. 2.1. ConfigurationYou can see this configuration on the KiraDJLintH006 branch of my demo/debugging repository.
2.2. BuildBuild, result of executing djLint command:
2.3. Environment
Thanks. |
Thanks! I was able to reproduce it in ubuntu docker + py 3.10.. so I switched back on the Mac and tested out w/ py.3.10 there and was able to reproduce it as well.. Must be something different in how 3.10 works. I will check it out! |
But on more testing, I'm able to reproduce in py 3.9 now :D Something must have changed when I copy/paste yesterday. |
# [1.12.0](v1.11.1...v1.12.0) (2022-08-24) ### Bug Fixes * **h006:** prevented false positives on H006 ([215bd23](215bd23)), closes [#344](#344) [#333](#333) * **h012:** prevent H012 from matching the contents of tags or attributes ([4480cff](4480cff)), closes [#348](#348) * **t001:** fixed false positive on multiline template tags ([ea76672](ea76672)), closes [#350](#350) ### Features * **h021:** allow inline styles that contain template syntax ([f1a39ed](f1a39ed)), closes [#351](#351) * **t002:** allow variables names to be used in the {% extends tag ([a5d96e7](a5d96e7)), closes [#349](#349)
🎉 This issue has been resolved in version 1.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Status: FIXED ✔️ for me for djLint 1.12.0. Also, fixed on Circle CI Ubuntu. Thanks. |
#333 — possibly related issue
1. Summary
I can’t ignore H006 error if:
<!-- HTML comments syntax -->
.2. MCVE
2.1. Files to check
Content of my
KiraH006
folder:KiraDJLint__Ignore-specific-by-HTML-comments--H006.html
:KiraDJLint__Ignore-all-by-HTML-comments--H006.html
:KiraDJLint__Ignore-H006-inside-div--H006.html
:KiraDJLint__Ignore-all-inside-div--H006.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: