Commit db5b9f8
committed
[cmd/mdatagen] Enforce tab indentation in Go template files
Add a check-template-tabs Makefile target and CI step that fails if any
.go.tmpl file under cmd/mdatagen or cmd/builder contains lines with
leading spaces. Convert the two remaining offending templates
(config_from_cfggen.go.tmpl and config_from_cfggen_test.go.tmpl) from
space to tab indentation.
Fixes #14698
Assisted-by: Claude Sonnet 4.61 parent 767b013 commit db5b9f8
5 files changed
Lines changed: 412 additions & 396 deletions
File tree
- .chloggen
- .github/workflows
- cmd/mdatagen/internal/templates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| 166 | + | |
| 167 | + | |
166 | 168 | | |
167 | 169 | | |
168 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
405 | 413 | | |
406 | 414 | | |
407 | 415 | | |
| |||
0 commit comments