-
-
Notifications
You must be signed in to change notification settings - Fork 85
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] [Linter] T027 False positive with golang comment syntax #712
Comments
6543
pushed a commit
to go-gitea/gitea
that referenced
this issue
Jul 9, 2023
Enable these rules: - H014 | More than 2 blank lines. - H023 | Do not use entity references. There are more potential rules to enable but they are blocked by bugs in the linter: - djlint/djLint#711 - djlint/djLint#712
silverwind
changed the title
[BUG] [Linter] T027 False-Positive with golang comment syntax
[BUG] [Linter] T027 False positive with golang comment syntax
Jul 10, 2023
@silverwind thanks for using djlint. |
Thanks for your work as well! If I had more time available, I'd certainly want to contribute here. |
christopherpickering
pushed a commit
that referenced
this issue
Jul 19, 2023
# [1.32.0](v1.31.1...v1.32.0) (2023-07-19) ### Bug Fixes * **formatter:** fixed formatting on chained function ([7c2756d](7c2756d)), closes [#704](#704) * **linter:** fixed false positive on h026 data-id ([400882a](400882a)), closes [#711](#711) * **linter:** fixed golang false positive on T027 ([232f4bc](232f4bc)), closes [#712](#712) ### Features * **formatter:** added support for jazzband's sorl-thumbnail tags ([86122dc](86122dc)), closes [#714](#714)
🎉 This issue has been resolved in version 1.32.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
silverwind
added a commit
to go-gitea/gitea
that referenced
this issue
Jul 19, 2023
New rules enabled as the bugs I reported were fixed: - H026 | Empty id and class tags can be removed. - T027 | Unclosed string found in template syntax. Refs: djlint/djLint#711 djlint/djLint#712
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System Info
Issue
T027 likely shouldn't parse inside go template comments as it's picking up a
'
as a unbalanced string while this is purely comment text.How To Reproduce
Contents of .djlintrc/pyproject.toml [tool.djlint]
The text was updated successfully, but these errors were encountered: