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

Method compile

client/tool/jaff_beta.py:20–32  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

18
19class JavaAPIFinderForFile(CodeLintModel):
20 def compile(self, params):
21 LogPrinter.info("Tool compile start.")
22 build_cmd = params.get("build_cmd")
23 if not build_cmd:
24 raise CompileTaskError("编译语言项目执行静态分析需要输入编译命令,请填入编译命令后重试!")
25 BasicCompile(
26 params,
27 sensitive=self.sensitive,
28 sensitive_word_maps=self.sensitive_word_maps,
29 build_cmd=BasicCompile.generate_shell_file(build_cmd),
30 ).compile()
31 LogPrinter.info("Tool compile done.")
32 return True
33
34 def analyze(self, params):
35 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