djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
686 stars 84 forks source link

[FEATURE] [Linter] unmatched quote and bracket does not trigger error #705

Open alphatownsman opened 1 year ago

alphatownsman commented 1 year ago

System Info

Issue

see below for example

How To Reproduce

➜  cat t.html
{% url 'journal:user_tag_list" user.url }}
➜  djlint t.html
Linting 1/1 files ━━━━━━━━━━━━━━━━━━━━━━━ 00:00
Linted 1 file, found 0 errors.

Contents of .djlintrc/pyproject.toml [tool.djlint]

none

welcome[bot] commented 1 year ago

Thanks for opening your first issue here!

christopherpickering commented 1 year ago

hey @alphatownsman

  1. Rule T027 is not triggered because there are no complete template blocks in your code
  2. There is no existing rule for orphan template tags.

I will leave this open as a feature request for #2. Thanks!