You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I'm using golangci-lint(version v1.54.1 built with go1.21.0) and need to detect out-of-bound slice access in my Go code. Example:
I've tried
enable-all: true
andgosec
's G602 rule , but they don't catch this case.Any suggestions for a linter or golangci-lint configuration that detects out-of-bound access and warns on the problematic line?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions