mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Shared: Remove the language-specific model generator scripts
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
#!/usr/bin/python3
|
||||
|
||||
import sys
|
||||
import os.path
|
||||
import subprocess
|
||||
|
||||
# Add Model as Data script directory to sys.path.
|
||||
gitroot = subprocess.check_output(["git", "rev-parse", "--show-toplevel"]).decode("utf-8").strip()
|
||||
madpath = os.path.join(gitroot, "misc/scripts/models-as-data/")
|
||||
sys.path.append(madpath)
|
||||
|
||||
import generate_flow_model as model
|
||||
|
||||
language = "java"
|
||||
model.Generator.make(language).run()
|
||||
@@ -35,8 +35,8 @@ def regenerateModel(lgtmSlug, extractedDb):
|
||||
sys.exit(1)
|
||||
modelFile = lgtmSlugToModelFile[lgtmSlug]
|
||||
codeQlRoot = findGitRoot()
|
||||
subprocess.check_call([codeQlRoot + "/java/ql/src/utils/modelgenerator/GenerateFlowModel.py",
|
||||
"--with-summaries", "--with-sinks", "--with-neutrals",
|
||||
subprocess.check_call([codeQlRoot + "/misc/scripts/models-as-data/generate_mad.py",
|
||||
"--language", "java", "--with-summaries", "--with-sinks", "--with-neutrals",
|
||||
extractedDb, modelFile])
|
||||
print("Regenerated " + modelFile)
|
||||
shutil.rmtree(tmpDir)
|
||||
|
||||
Reference in New Issue
Block a user