Commit acead37
authored
Enable gocritic offBy1 and fix import warning slicing (codex) (#3713)
## Changes
- enable the gocritic offBy1 check in golangci-lint so we catch missing
Index() bounds handling
- guard the Terraform import warning truncation against missing
"Warning:" blocks to avoid slice panics
------
https://chatgpt.com/s/cd_68df8308cdf081918babe8e111fb5dce1 parent 2bddd05 commit acead37
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | | - | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| |||
0 commit comments