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

Method compile

client/tool/androidlint.py:45–60  ·  view source on GitHub ↗

编译执行函数 :param params: :return:

(self, params)

Source from the content-addressed store, hash-verified

43 self.sensitive_word_maps = {"AndroidLint": "Tool", "androidlint": "Tool"}
44
45 def compile(self, params):
46 """
47 编译执行函数
48 :param params:
49 :return:
50 """
51 build_cmd = params.get("build_cmd")
52 if not build_cmd:
53 raise CompileTaskError("编译语言项目执行静态分析需要输入编译命令,请填入编译命令后重试!")
54 BasicCompile(
55 params,
56 sensitive=self.sensitive,
57 sensitive_word_maps=self.sensitive_word_maps,
58 build_cmd=BasicCompile.generate_shell_file(build_cmd),
59 ).compile()
60 return True
61
62 def analyze(self, params):
63 """

Callers 1

analyzeMethod · 0.45

Calls 4

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

Tested by

no test coverage detected