mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
Fix name of api filter predicate
This commit is contained in:
@@ -16,7 +16,7 @@ class ExternalAPI extends Callable {
|
||||
ExternalAPI() { not this.fromSource() }
|
||||
|
||||
/** Holds if this API is a candidate worth supporting */
|
||||
predicate isWorthSupporting() { not isTestLibrary() and not isParameterlessConstructor() }
|
||||
predicate isUninteresting() { isTestLibrary() or isParameterlessConstructor() }
|
||||
|
||||
/** Holds if this API is is a constructor without parameters */
|
||||
predicate isParameterlessConstructor() {
|
||||
|
||||
@@ -16,6 +16,6 @@ where
|
||||
c.getCallee() = a and
|
||||
not c.getFile() instanceof GeneratedFile and
|
||||
a.jarContainer() = jarname and
|
||||
a.isWorthSupporting()
|
||||
not a.isUninteresting()
|
||||
)
|
||||
select jarname, usages order by usages desc
|
||||
|
||||
@@ -12,7 +12,7 @@ import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
where
|
||||
api.isWorthSupporting() and
|
||||
not api.isUninteresting() and
|
||||
api.isSink() and
|
||||
usages =
|
||||
strictcount(Call c |
|
||||
|
||||
@@ -12,7 +12,7 @@ import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
where
|
||||
api.isWorthSupporting() and
|
||||
not api.isUninteresting() and
|
||||
api.isSource() and
|
||||
usages =
|
||||
strictcount(Call c |
|
||||
|
||||
@@ -12,7 +12,7 @@ import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
where
|
||||
api.isWorthSupporting() and
|
||||
not api.isUninteresting() and
|
||||
api.hasSummary() and
|
||||
usages =
|
||||
strictcount(Call c |
|
||||
|
||||
@@ -12,7 +12,7 @@ import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
where
|
||||
api.isWorthSupporting() and
|
||||
not api.isUninteresting() and
|
||||
not api.isSupported() and
|
||||
usages =
|
||||
strictcount(Call c |
|
||||
|
||||
Reference in New Issue
Block a user