/** * @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 java/telemetry/supported-external-api-sources */ import java import ExternalAPI import semmle.code.java.GeneratedFiles from ExternalApi api, int usages where not api.isUninteresting() and api.isSource() and usages = strictcount(Call c | c.getCallee().getSourceDeclaration() = api and not c.getFile() instanceof GeneratedFile ) select api.getApiName() as apiname, usages order by usages desc