Describe the bug
Certain patterns (see repro) return two results on the same expression.
To Reproduce
This is on Python code:
Rule:
pattern: target(..., kw=$X, ...)
Code:
target(other_kw="foo", kw="bar")
Result: See message printed twice for same line of code.
Expected behavior
I expect only one match.
Desktop (please complete the following information):
Docker returntocorp/sgrep image 2772f96a29b9
@ievans I'm planning to fix in the python code but lmk if this is something you think should be passed off to @aryx
@DrewDennison as I read this issue, I think it is a question of sgrep; I think @aryx should weigh in
See also #128
ha we searched for twice not three in the open issues
This is now deduped in the python code so closing for now
Most helpful comment
ha we searched for
twicenotthreein the open issues