Code scanning: return, is_ attribute and test-random false positives #354

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

Discussion

cmc 2026-11-20 20:32 UTC

Three opengrep-rules families produced most of the remaining noise on audit-labs/audit-platform and krz/orgstar:

  • return-not-in-function and return-in-init read a lambda's body as a return (21 hits on a module-level dict of lambdas, one on a sort key in __init__).
  • is-function-without-parentheses flags every uncalled x.is_*; 24 hits named dataclass bool fields.
  • insecure-random in test files.

closed by cmc in commit 22770ebc07: codescan: set aside lambda returns, is_ attributes and random in tests

2026-11-20 20:32 UTC