mirror of
https://github.com/github/codeql.git
synced 2025-12-25 05:06:34 +01:00
17 lines
494 B
Plaintext
17 lines
494 B
Plaintext
/**
|
|
* @name Usage of unsupported APIs coming from external libraries
|
|
* @description A list of 3rd party APIs used in the codebase. Excludes test and generated code.
|
|
* @kind metric
|
|
* @tags summary telemetry
|
|
* @id java/telemetry/unsupported-external-api
|
|
*/
|
|
|
|
import java
|
|
import ExternalApi
|
|
|
|
private predicate relevant(ExternalApi api) { not api.isSupported() }
|
|
|
|
from string apiName, int usages
|
|
where Results<relevant/1>::restrict(apiName, usages)
|
|
select apiName, usages order by usages desc
|