mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
patch upper-case acronyms to be PascalCase
This commit is contained in:
@@ -12,8 +12,8 @@ private import semmle.code.java.dataflow.TaintTracking
|
||||
/**
|
||||
* An external API from either the Java Standard Library or a 3rd party library.
|
||||
*/
|
||||
class ExternalAPI extends Callable {
|
||||
ExternalAPI() { not this.fromSource() }
|
||||
class ExternalApi extends Callable {
|
||||
ExternalApi() { not this.fromSource() }
|
||||
|
||||
/** Holds if this API is not worth supporting */
|
||||
predicate isUninteresting() { this.isTestLibrary() or this.isParameterlessConstructor() }
|
||||
@@ -80,6 +80,9 @@ class ExternalAPI extends Callable {
|
||||
predicate isSupported() { this.hasSummary() or this.isSource() or this.isSink() }
|
||||
}
|
||||
|
||||
/** DEPRECATED: Alias for ExternalApi */
|
||||
deprecated class ExternalAPI = ExternalApi;
|
||||
|
||||
private class TestLibrary extends RefType {
|
||||
TestLibrary() {
|
||||
this.getPackage()
|
||||
|
||||
@@ -12,7 +12,7 @@ import ExternalAPI
|
||||
from int usages, string jarname
|
||||
where
|
||||
usages =
|
||||
strictcount(Call c, ExternalAPI a |
|
||||
strictcount(Call c, ExternalApi a |
|
||||
c.getCallee().getSourceDeclaration() = a and
|
||||
not c.getFile() instanceof GeneratedFile and
|
||||
a.jarContainer() = jarname and
|
||||
|
||||
@@ -10,7 +10,7 @@ import java
|
||||
import ExternalAPI
|
||||
import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
from ExternalApi api, int usages
|
||||
where
|
||||
not api.isUninteresting() and
|
||||
api.isSink() and
|
||||
|
||||
@@ -10,7 +10,7 @@ import java
|
||||
import ExternalAPI
|
||||
import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
from ExternalApi api, int usages
|
||||
where
|
||||
not api.isUninteresting() and
|
||||
api.isSource() and
|
||||
|
||||
@@ -10,7 +10,7 @@ import java
|
||||
import ExternalAPI
|
||||
import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
from ExternalApi api, int usages
|
||||
where
|
||||
not api.isUninteresting() and
|
||||
api.hasSummary() and
|
||||
|
||||
@@ -10,7 +10,7 @@ import java
|
||||
import ExternalAPI
|
||||
import semmle.code.java.GeneratedFiles
|
||||
|
||||
from ExternalAPI api, int usages
|
||||
from ExternalApi api, int usages
|
||||
where
|
||||
not api.isUninteresting() and
|
||||
not api.isSupported() and
|
||||
|
||||
Reference in New Issue
Block a user