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

Method compile

client/tool/findbugs.py:90–103  ·  view source on GitHub ↗

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

(self, params)

Source from the content-addressed store, hash-verified

88 }
89
90 def compile(self, params):
91 """
92 编译执行函数
93 :param params:
94 :return:
95 """
96 LogPrinter.info("Tool compile start.")
97 build_cmd = params.get("build_cmd")
98 if not build_cmd:
99 raise CompileTaskError("编译语言项目执行静态分析需要输入编译命令,请填入编译命令后重试!")
100 BasicCompile(params, sensitive=self.sensitive, sensitive_word_maps=self.sensitive_word_maps,
101 build_cmd=BasicCompile.generate_shell_file(build_cmd)).compile()
102 LogPrinter.info("Tool compile done.")
103 return True
104
105 def analyze(self, params):
106

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