MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / compile

Method compile

client/tool/jaaf.py:24–36  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

22
23class JavaASTAPIFinder(CodeLintModel):
24 def compile(self, params):
25 LogPrinter.info("Tool compile start.")
26 build_cmd = params.get("build_cmd")
27 if not build_cmd:
28 raise CompileTaskError("编译语言项目执行静态分析需要输入编译命令,请填入编译命令后重试!")
29 BasicCompile(
30 params,
31 sensitive=self.sensitive,
32 sensitive_word_maps=self.sensitive_word_maps,
33 build_cmd=BasicCompile.generate_shell_file(build_cmd),
34 ).compile()
35 LogPrinter.info("Tool compile done.")
36 return True
37
38 def analyze(self, params):
39 source_dir = params["source_dir"]

Callers

nothing calls this directly

Calls 5

CompileTaskErrorClass · 0.90
BasicCompileClass · 0.90
generate_shell_fileMethod · 0.80
infoMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected