Commit 8d39a59
authored
fix(lint): add nolint directives for safe integer conversions (#361)
## Summary
- Fix gosec G115 warnings for safe uint->int/int64 conversions
- All flagged conversions involve small config values (ports, timeouts,
limits)
## Changes
- `main.go:58`: SMTPPort (0-65535)
- `main.go:71`: ResetRateLimitRequests (typically 3-10)
- `main.go:73`: ResetRateLimitWindowMinutes (typically 60-120)
- `internal/rpc/request_password_reset.go:99`: ResetTokenExpiryMinutes
(typically 15-60)
## Test plan
- CI should pass with gosec checks
- No functional changes2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
| |||
0 commit comments