mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
JS: Autoformat
This commit is contained in:
@@ -40,9 +40,7 @@ class PackageJSON extends JSONObject {
|
||||
ContributorInfo getAuthor() { result = getPropValue("author") }
|
||||
|
||||
/** Gets information for a contributor to this package. */
|
||||
ContributorInfo getAContributor() {
|
||||
result = getPropValue("contributors").getElementValue(_)
|
||||
}
|
||||
ContributorInfo getAContributor() { result = getPropValue("contributors").getElementValue(_) }
|
||||
|
||||
/** Gets the array of files for this package. */
|
||||
JSONArray getFiles() { result = getPropValue("files") }
|
||||
|
||||
@@ -233,11 +233,7 @@ private module TypeScriptOutDir {
|
||||
tsconfig.getFile().getBaseName().regexpMatch("tsconfig.*\\.json") and
|
||||
tsconfig.isTopLevel() and
|
||||
tsconfig.getFile().getParentContainer() = parent and
|
||||
result =
|
||||
tsconfig
|
||||
.getPropValue("compilerOptions")
|
||||
.getPropValue("outDir")
|
||||
.getStringValue()
|
||||
result = tsconfig.getPropValue("compilerOptions").getPropValue("outDir").getStringValue()
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -279,10 +275,7 @@ private module TypeScriptOutDir {
|
||||
pragma[inline]
|
||||
private string getARootDirFromInclude(JSONObject tsconfig) {
|
||||
result =
|
||||
getRootFolderFromPath(tsconfig
|
||||
.getPropValue("include")
|
||||
.getElementValue(_)
|
||||
.getStringValue())
|
||||
getRootFolderFromPath(tsconfig.getPropValue("include").getElementValue(_).getStringValue())
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -290,11 +283,7 @@ private module TypeScriptOutDir {
|
||||
*/
|
||||
pragma[inline]
|
||||
private string getRootDir(JSONObject tsconfig) {
|
||||
result =
|
||||
tsconfig
|
||||
.getPropValue("compilerOptions")
|
||||
.getPropValue("rootDir")
|
||||
.getStringValue()
|
||||
result = tsconfig.getPropValue("compilerOptions").getPropValue("rootDir").getStringValue()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user