C#: Add telemetry query for supported sources.

This commit is contained in:
Michael Nebel
2022-03-08 10:55:50 +01:00
parent a7ece69f2b
commit 1f1059bfc6

View File

@@ -0,0 +1,17 @@
/**
* @name Supported sources in external libraries
* @description A list of 3rd party APIs detected as sources. Excludes test and generated code.
* @kind metric
* @tags summary
* @id csharp/telemetry/supported-external-api-sources
*/
import csharp
import ExternalAPI
from ExternalAPI api, int usages
where
not api.isUninteresting() and
api.isSource() and
usages = strictcount(Call c | c.getTarget() = api)
select api.getInfo() as info, usages order by usages desc