Commit 52c78de
committed
fix: address MaineK00n review feedback
- Rename golden files: .golden.json → .json (redundant under testdata/golden/)
- Use cmp.Or for sort comparators in normalizeResult
- Switch on langType in parseBinary to isolate sentinel errors per language
- Wrap parseExecutableBinary errors with language name, symmetrize structure
- Simplify dispatch.go: inline filepath.Base in switch, use slices.Contains
- Extract base-runner.go from compare-lockfile.go via //go:embed
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ce2bcdf commit 52c78de
File tree
41 files changed
+245
-325
lines changed- scanner
- testdata/golden
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
41 files changed
+245
-325
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
| 202 | + | |
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | 271 | | |
279 | 272 | | |
280 | 273 | | |
| |||
294 | 287 | | |
295 | 288 | | |
296 | 289 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
313 | 307 | | |
314 | 308 | | |
315 | 309 | | |
316 | 310 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
321 | 315 | | |
322 | 316 | | |
323 | 317 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
871 | 871 | | |
872 | 872 | | |
873 | 873 | | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
879 | 889 | | |
880 | | - | |
881 | 890 | | |
882 | 891 | | |
883 | 892 | | |
| |||
895 | 904 | | |
896 | 905 | | |
897 | 906 | | |
898 | | - | |
| 907 | + | |
899 | 908 | | |
900 | 909 | | |
901 | 910 | | |
| |||
905 | 914 | | |
906 | 915 | | |
907 | 916 | | |
908 | | - | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
909 | 927 | | |
910 | 928 | | |
911 | 929 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | | - | |
49 | | - | |
50 | 49 | | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
159 | 158 | | |
160 | 159 | | |
161 | 160 | | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 161 | + | |
168 | 162 | | |
169 | 163 | | |
170 | 164 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments