(self, params)
| 22 | |
| 23 | class JavaASTAPIFinder(CodeLintModel): |
| 24 | def compile(self, params): |
| 25 | LogPrinter.info("Tool compile start.") |
| 26 | build_cmd = params.get("build_cmd") |
| 27 | if not build_cmd: |
| 28 | raise CompileTaskError("编译语言项目执行静态分析需要输入编译命令,请填入编译命令后重试!") |
| 29 | BasicCompile( |
| 30 | params, |
| 31 | sensitive=self.sensitive, |
| 32 | sensitive_word_maps=self.sensitive_word_maps, |
| 33 | build_cmd=BasicCompile.generate_shell_file(build_cmd), |
| 34 | ).compile() |
| 35 | LogPrinter.info("Tool compile done.") |
| 36 | return True |
| 37 | |
| 38 | def analyze(self, params): |
| 39 | source_dir = params["source_dir"] |
nothing calls this directly
no test coverage detected