编译执行函数 :param params: :return:
(self, params)
| 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 |
nothing calls this directly
no test coverage detected