Skip to content

golangci: Disable gosec G118 (context cancellation)#389

Merged
nirs merged 1 commit intoRamenDR:mainfrom
nirs:gosec-context-cancetation
Mar 9, 2026
Merged

golangci: Disable gosec G118 (context cancellation)#389
nirs merged 1 commit intoRamenDR:mainfrom
nirs:gosec-context-cancetation

Conversation

@nirs
Copy link
Member

@nirs nirs commented Mar 8, 2026

G118 flags context.WithTimeout calls where the cancel function is returned to the caller instead of being called in the same function. This is a false positive for our withTimeout() helpers that return cancel for the caller to defer.

Assisted-by: Cursor/Claude Opus 4.6

G118 flags context.WithTimeout calls where the cancel function is
returned to the caller instead of being called in the same function.
This is a false positive for our withTimeout() helpers that return
cancel for the caller to defer.

Assisted-by: Cursor/Claude Opus 4.6
Signed-off-by: Nir Soffer <nsoffer@redhat.com>
@nirs nirs merged commit 2653baa into RamenDR:main Mar 9, 2026
13 checks passed
@nirs nirs deleted the gosec-context-cancetation branch March 9, 2026 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants