Context
PR #13 added a repo-wide //nolint:gosec exclusion for rule G115 (integer overflow in uint32 to int conversion). This is overly broad — only specific files need it.
Problem
The current exclusion suppresses G115 across the entire repo, hiding potential integer overflow issues in future code.
Proposed Fix
- Identify the exact files/lines that need the G115 exclusion (likely CAS protocol buffer size conversions).
- Remove the repo-wide exclusion from
.golangci.yml or equivalent config.
- Add
//nolint:gosec // G115: CAS protocol field is bounded inline comments at the specific conversion sites.
References
Context
PR #13 added a repo-wide
//nolint:gosecexclusion for rule G115 (integer overflow inuint32tointconversion). This is overly broad — only specific files need it.Problem
The current exclusion suppresses G115 across the entire repo, hiding potential integer overflow issues in future code.
Proposed Fix
.golangci.ymlor equivalent config.//nolint:gosec // G115: CAS protocol field is boundedinline comments at the specific conversion sites.References