Skip to content

Commit 918a6c7

Browse files
committed
C#: Telemetry query for measuring (unsupport dataflow) library usage.
1 parent c023808 commit 918a6c7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @name Usage of unsupported APIs coming from external libraries
3+
* @description A list of 3rd party APIs used in the codebase. Excludes test and generated code.
4+
* @kind metric
5+
* @tags summary
6+
* @id csharp/telemetry/unsupported-external-api
7+
*/
8+
9+
import csharp
10+
import ExternalAPI
11+
12+
from ExternalAPI api, int usages
13+
where
14+
not api.isUninteresting() and
15+
not api.isSupported() and
16+
usages = strictcount(Call c | c.getTarget() = api)
17+
select api.getInfo() as info, usages order by usages desc

0 commit comments

Comments
 (0)