Commit 2a1c593
committed
fix: address review feedback on .envrc/lefthook/Makefile cleanup
- .envrc:23 missed the Go-version bump message; align with REQUIRED_VERSION.
- .envrc:30 numeric awk comparison treated 1.9 as >= 1.26; split major/minor
and compare as integers.
- .envrc:60 git rev-parse can fail (no git, not in a repo) and set -e would
abort the whole .envrc; guard the call and skip the hooks check cleanly.
- lefthook.yml:174 had the same `.git/hooks/pre-commit` hardcoded path that
fails in worktrees; mirror the .envrc fix.
- Makefile: drop the snap/securecodewarrior/gosec install hints (snap pkg
doesn't exist; the repo URL is 404) and use
`go install github.com/securego/gosec/v2/cmd/gosec@latest` consistently.
- Makefile:300 still hardcoded "60.1%" coverage; replace with a pointer to
`make test-coverage` so it can't drift.
Addresses gemini-code-assist and Copilot review comments on PR #598.
Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>1 parent 1100080 commit 2a1c593
3 files changed
Lines changed: 34 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | | - | |
| 25 | + | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
28 | | - | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
56 | 64 | | |
57 | 65 | | |
58 | 66 | | |
59 | | - | |
60 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
61 | 75 | | |
62 | | - | |
| 76 | + | |
63 | 77 | | |
| 78 | + | |
| 79 | + | |
64 | 80 | | |
65 | 81 | | |
66 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
101 | | - | |
| 99 | + | |
| 100 | + | |
102 | 101 | | |
103 | 102 | | |
104 | 103 | | |
| |||
214 | 213 | | |
215 | 214 | | |
216 | 215 | | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
225 | 219 | | |
226 | 220 | | |
227 | 221 | | |
| |||
297 | 291 | | |
298 | 292 | | |
299 | 293 | | |
300 | | - | |
| 294 | + | |
301 | 295 | | |
302 | 296 | | |
303 | 297 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
| |||
0 commit comments