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