Files
codeql/java/ql/src/Telemetry/SupportedExternalTaint.ql
Henry Mercer b6f1ddcdab Java: Tag telemetry queries with telemetry
This will exclude the results of these queries from the summary tables
produced by `codeql database analyze` in a future version of the CodeQL
CLI.
2022-05-11 13:29:25 +01:00

23 lines
625 B
Plaintext

/**
* @name Supported flow steps in external libraries
* @description A list of 3rd party APIs detected as flow steps. Excludes test and generated code.
* @kind metric
* @tags summary telemetry
* @id java/telemetry/supported-external-api-taint
*/
import java
import ExternalApi
import semmle.code.java.GeneratedFiles
from ExternalApi api, int usages
where
not api.isUninteresting() and
api.hasSummary() 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