|
1 | 1 | [tool.djlint] |
| 2 | +# LINT-ONLY MODE - Formatting disabled for code generation templates |
| 3 | +# djLint formatting breaks code syntax in generated files |
| 4 | +# Only use --lint flag, never --reformat |
2 | 5 |
|
3 | 6 | profile="jinja" |
4 | 7 | extension="twig" |
5 | 8 |
|
6 | | -ignore="H006,H012,H013,H014,H021,H023,H025,H030,H031,T001,T002,T003,T027,T028,T032" |
7 | | -# H006: img tag height/width (not needed in templates) |
8 | | -# H012: spaces around = (needed for TypeScript generics like <T = X>) |
9 | | -# H013: img tag alt text (not applicable to code templates) |
10 | | -# H014: extra blank lines (often intentional in code generation) |
11 | | -# H021: inline styles (generated code often has inline styles) |
12 | | -# H023: entity references (templates use various entities) |
13 | | -# H025: orphan tags (template logic creates valid output) |
14 | | -# H030/H031: meta tags (not applicable to SDK templates) |
15 | | -# T001: variable whitespace (breaks code generation) |
16 | | -# T002: quote style (templates need flexibility) |
17 | | -# T003: endblock naming (not always needed) |
18 | | -# T027: unclosed strings (false positive for ${{ secrets.X }} syntax) |
19 | | -# T028: spaceless tags (not applicable) |
20 | | -# T032: extra whitespace in tags (often intentional for formatting) |
| 9 | +# Ignoring only genuine false positives for code generation templates |
| 10 | +ignore="H012,H025,H030,H031,T001,T002,T027,T032" |
| 11 | +# H012: spaces around = - false positive for TypeScript generics like <T = Models.Document> |
| 12 | +# H025: orphan tags - false positive for code generics like <T>, <String>, <Exception> |
| 13 | +# H030/H031: meta description/keywords (not applicable to SDK code templates) |
| 14 | +# T001: whitespace in tags - {%~ is intentional Twig whitespace control |
| 15 | +# T002: double quotes - templates need flexibility with quote styles |
| 16 | +# T027: unclosed strings - false positive for ${{ secrets.X }} in GitHub Actions |
| 17 | +# T032: extra whitespace in tags - often intentional for formatting/line continuation |
| 18 | + |
| 19 | +# Rules we ARE enforcing: |
| 20 | +# H014: extra blank lines - will fix these |
21 | 21 |
|
22 | 22 | exclude=".git,vendor,tests/sdks,node_modules,examples" |
23 | 23 |
|
|
0 commit comments