What is the problem you're trying to solve
We'd like to find issues like #6331 automatically.
Describe the solution you'd like
golangci-lint was having scopelint which is replaced by looppointer and exportloopref by the author. We should be able to use either of them in our golangci-lint, if it doesn't result too much false positives.
Additional context
No response