mirror of
https://github.com/github/codeql.git
synced 2026-02-19 16:33:40 +01:00
17 lines
537 B
Plaintext
17 lines
537 B
Plaintext
/**
|
|
* @name Usage of unsupported APIs coming from external libraries
|
|
* @description A list of 3rd party APIs used in the codebase. Excludes APIs exposed by test libraries.
|
|
* @kind metric
|
|
* @tags summary telemetry
|
|
* @id cs/telemetry/unsupported-external-api
|
|
*/
|
|
|
|
private import csharp
|
|
private import semmle.code.csharp.telemetry.ExternalApi
|
|
|
|
private predicate relevant(ExternalApi api) { not api.isSupported() }
|
|
|
|
from string info, int usages
|
|
where Results<relevant/1>::restrict(info, usages)
|
|
select info, usages order by usages desc
|