Skip to content

Commit 04b5e00

Browse files
committed
Add more ignore rules to djLint configuration
Ignore additional rules that flag false positives in code generation templates: - H012: Spaces around = (needed for TypeScript generics) - H014: Extra blank lines (often intentional) - T027: Unclosed strings (GitHub Actions ${{ secrets.X }} syntax) - T032: Extra whitespace in tags (intentional formatting) Result: Linted 462 files, found 0 errors.
1 parent ec0e7e1 commit 04b5e00

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33
profile="jinja"
44
extension="twig"
55

6-
ignore="H006,H013,H021,H023,H025,H030,H031,T001,T002,T003,T028"
6+
ignore="H006,H012,H013,H014,H021,H023,H025,H030,H031,T001,T002,T003,T027,T028,T032"
77
# H006: img tag height/width (not needed in templates)
8+
# H012: spaces around = (needed for TypeScript generics like <T = X>)
89
# H013: img tag alt text (not applicable to code templates)
10+
# H014: extra blank lines (often intentional in code generation)
911
# H021: inline styles (generated code often has inline styles)
1012
# H023: entity references (templates use various entities)
1113
# H025: orphan tags (template logic creates valid output)
1214
# H030/H031: meta tags (not applicable to SDK templates)
1315
# T001: variable whitespace (breaks code generation)
1416
# T002: quote style (templates need flexibility)
1517
# T003: endblock naming (not always needed)
18+
# T027: unclosed strings (false positive for ${{ secrets.X }} syntax)
1619
# T028: spaceless tags (not applicable)
20+
# T032: extra whitespace in tags (often intentional for formatting)
1721

1822
exclude=".git,vendor,tests/sdks,node_modules,examples"
1923

0 commit comments

Comments
 (0)