Repository navigation
Commit d65b589
committed
ref(lint): Flag ORM lookups that may match NULL rows
Adds lookupMayMatchNullRows to the decision-model linter's security suite. An
exact lookup like filter(user_id=x) with x None means user_id IS NULL, which
matched pending invites and orphaned rows for callers with no user. The rule
warns on changed code and says how to decide what None should mean.1 parent 1baaaff commit d65b589
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
207 | 226 | | |
208 | 227 | | |
209 | 228 | | |
| |||
0 commit comments