patch upper-case acronyms to be PascalCase

This commit is contained in:
Erik Krogh Kristensen
2022-03-11 11:10:33 +01:00
parent e3a15792fa
commit 69353bb014
422 changed files with 3532 additions and 2244 deletions

View File

@@ -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()

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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