We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 75b1e14 + 6bf05eb commit e99c78eCopy full SHA for e99c78e
csharp/ql/src/Telemetry/ExtractorInformation.ql
@@ -120,7 +120,14 @@ module ReportStats<StatsSig Stats> {
120
module CallTargetStats implements StatsSig {
121
int getNumberOfOk() { result = count(Call c | exists(c.getTarget())) }
122
123
- int getNumberOfNotOk() { result = count(Call c | not exists(c.getTarget())) }
+ int getNumberOfNotOk() {
124
+ result =
125
+ count(Call c |
126
+ not exists(c.getTarget()) and
127
+ not c instanceof DelegateCall and
128
+ not c instanceof DynamicExpr
129
+ )
130
+ }
131
132
string getOkText() { result = "calls with call target" }
133
0 commit comments