Commit 094076b
committed
refactor: strict exported-above-unexported ordering (fat12, images handler)
Two declaration-order fixes for the "exported above unexported" rule that #67's
follow-up (8518acf) left, both respecting "const block at top (after imports)":
- metadata/fat12.go: hoist exported CreateFAT12 above newFAT12Builder + the
fat12Builder method group.
- cmd/images/handler.go: keep the mixed const block at top (config.go-style
const-first, since it holds a plain const + typed enum values), then hoist
exported Handler above the unexported imageType/importSourceKind/importLocalPlan.
Pure relocation, no behavior change. Verified project-wide: 0 exported-standalone-
after-unexported, 0 exported-type-after-unexported, 0 AST layout violations across
236 files; const/var blocks at top everywhere except the SKILL-sanctioned
typed-const grouping (type X then its const block). build/vet/lint (darwin+linux)
+ race tests green.1 parent 8518acf commit 094076b
2 files changed
Lines changed: 17 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | 5 | | |
10 | 6 | | |
11 | 7 | | |
| |||
22 | 18 | | |
23 | 19 | | |
24 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
46 | 59 | | |
47 | 60 | | |
48 | 61 | | |
| |||
195 | 208 | | |
196 | 209 | | |
197 | 210 | | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| |||
0 commit comments