Merge branch 'dev' of github.com:Riverside-Healthcare/djLint into dev

This commit is contained in:
Christopher Pickering 2022-07-06 13:09:54 -05:00
commit 6c653093fe
No known key found for this signature in database
GPG key ID: E14DB3B0A0FACF84
2 changed files with 5 additions and 1 deletions

View file

@ -191,7 +191,7 @@
flags: re.I
patterns:
- <\w+\b[^(?:{(?:%|{|#))>]*?\b(class|id)\b=(\"\"|'')
- <\w+\b[^(?:{(?:%|{|#))>]*?\b(class|id)\b[^=\"]
- <\w+\b[^(?:{(?:%|{|#))>-]*?\b(class|id)\b[^=\"-]
- rule:
name: T027
message: Unclosed string found in template syntax.

View file

@ -549,6 +549,10 @@ def test_H026(runner: CliRunner, tmp_file: TextIO) -> None:
assert result.exit_code == 0
assert "H026" not in result.output
write_to_file(tmp_file.name, b"<div x-id-y><div id-y><div x-id>")
result = runner.invoke(djlint, [tmp_file.name])
assert "H026" not in result.output
def test_T027(runner: CliRunner, tmp_file: TextIO) -> None:
write_to_file(tmp_file.name, b"{% blah 'asdf %}")