We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b709a88 commit ba4cadaCopy full SHA for ba4cada
csharp/ql/src/Likely Bugs/Collections/WriteOnlyContainer.ql
@@ -23,7 +23,9 @@ where
23
) and
24
forex(Access a | a = v.getAnAccess() |
25
a = any(ModifierMethodCall m).getQualifier() or
26
- a = any(Assignment ass | ass.getRValue() instanceof ObjectCreation).getLValue()
+ a = any(AssignExpr ass | ass.getRValue() instanceof ObjectCreation).getLValue() or
27
+ a =
28
+ any(LocalVariableDeclAndInitExpr ass | ass.getRValue() instanceof ObjectCreation).getLValue()
29
30
not v = any(ForeachStmt fs).getVariable() and
31
not v = any(BindingPatternExpr vpe).getVariableDeclExpr().getVariable() and
0 commit comments