-
Notifications
You must be signed in to change notification settings - Fork 498
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
https://semgrep.dev/r?q=exported_loop_pointer
With the loop pointer issue fixed in go 1.22 (https://go.dev/blog/loopvar-preview) this rule creates a false positive. Would it make sense/be possible to have the rule conditionally applied based on the go version?
Expected behavior
When using go >= 1.22 I would expect the rule to not trigger.
Priority
How important is this to you?
- P0: blocking me from making progress
- P1: this will block me in the near future
- P2: annoying but not blocking me
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working