mirror of
https://github.com/github/codeql.git
synced 2026-02-20 17:03:41 +01:00
21 lines
462 B
Plaintext
21 lines
462 B
Plaintext
/**
|
|
* @name External libraries
|
|
* @description A list of external libraries used in the code
|
|
* @kind metric
|
|
* @tags summary
|
|
* @id csharp/telemetry/external-libs
|
|
*/
|
|
|
|
import csharp
|
|
import ExternalApi
|
|
|
|
from int usages, string info
|
|
where
|
|
usages =
|
|
strictcount(Call c, ExternalApi api |
|
|
c.getTarget().getUnboundDeclaration() = api and
|
|
api.getInfoPrefix() = info and
|
|
not api.isUninteresting()
|
|
)
|
|
select info, usages order by usages desc
|