Commit cd3341e
committed
fix: align builtin aggregate template with runtime input shape
Addresses codex-review feedback: bundled aggregate_report rules are
evaluated with entries under input.aggregates_internal["cat/name"],
not the custom-rule compatibility shape input.aggregate. The prior
builtin template would produce a rule whose scaffolded test passed
(because it injected input.aggregate directly) but which never emitted
violations during normal linting.
Switch the builtin template to read from input.aggregates_internal
keyed by "{{.Category}}/{{.NameOriginal}}" and update the generated
test to exercise the same shape via util.with_source_files.1 parent cc5d20e commit cd3341e
2 files changed
Lines changed: 8 additions & 3 deletions
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
0 commit comments