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

Method compile

client/tool/jaff.py:25–37  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

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