Commit c2cdaf6
committed
fix: resolve all golangci-lint issues
- Add gosec excludes for G301, G304, G306 (workspace operations are safe)
- Fix variable shadowing in List() method (err -> resolveErr)
- Pre-allocate results slice in grepWithRipgrep()
- Add size limit to io.Copy to prevent decompression bomb (G110)
All lint checks now pass locally and should match CI.1 parent 92669de commit c2cdaf6
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
46 | 54 | | |
47 | 55 | | |
48 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
290 | 289 | | |
| 290 | + | |
291 | 291 | | |
292 | 292 | | |
293 | 293 | | |
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
635 | | - | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
636 | 638 | | |
637 | 639 | | |
0 commit comments