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

Method compile

client/tool/spotbugs.py:35–48  ·  view source on GitHub ↗

编译执行函数 :param params: 编译所需要的资源 1.项目地址 2. 编译命令 3. 环境变量参数 4.编译结果生成地址 :return:

(self, params)

Source from the content-addressed store, hash-verified

33 }
34
35 def compile(self, params):
36 """
37 编译执行函数
38 :param params: 编译所需要的资源 1.项目地址 2. 编译命令 3. 环境变量参数 4.编译结果生成地址
39 :return:
40 """
41 LogPrinter.info("Tool compile start.")
42 build_cmd = params.get("build_cmd")
43 if not build_cmd:
44 raise CompileTaskError("编译语言项目执行静态分析需要输入编译命令,请填入编译命令后重试!")
45 BasicCompile(params, sensitive=self.sensitive, sensitive_word_maps=self.sensitive_word_maps,
46 build_cmd=BasicCompile.generate_shell_file(build_cmd)).compile()
47 LogPrinter.info("Tool compile done.")
48 return True
49
50 def analyze(self, params):
51

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