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
Named tuples should indeed not trigger the rule. This is likely a bug in how Semgrep parses named tuples with parenthesised arguments. Regular named tuples are parsed fine, and the rule doesn't match those. I am expecting the last test case here to match after the bug gets fixed: https://semgrep.dev/playground/s/X5r1N
Is the intent to flag a vector of type const, or chained constants? the vector below will trip the rule.
const gr_fill_styles = ((/) = 9, () = 10, (|) = 7, (-) = 8, (+) = 11, (x) = 6)
I wouldn't think a vector would not trigger the rule, if that is intended, can you explain why that is an issue, or point me to a CVE.
Thanks.
The text was updated successfully, but these errors were encountered: