Code scanning: string-concat-in-list hits on strings joined inside a call #353

closed cmc opened this on 2026-11-20 20:25 UTC

Discussion

cmc 2026-11-20 20:25 UTC

opengrep-rules' python/lang/correctness/common-mistakes/string-concat-in-list matches joined strings anywhere inside [...] or {...}. 15 of 19 hits on audit-labs/audit-platform were a query or message split over lines as one call argument inside a comprehension or a list, e.g. [r for r in conn.execute("select … " "from …")]. A missing comma matters only where the joined string is a list or set element.

closed by cmc in commit ba07333fed: codescan: set aside string-concat-in-list hits inside calls

2026-11-20 20:25 UTC