异常捕获 :param line: :return:
(self, line)
| 303 | return dirs |
| 304 | |
| 305 | def _error_callback(self, line): |
| 306 | """ |
| 307 | 异常捕获 |
| 308 | :param line: |
| 309 | :return: |
| 310 | """ |
| 311 | self.print_log(line) |
| 312 | |
| 313 | if line.find("gometalinter: error: user: Current not implemented on linux/amd64") != -1: |
| 314 | raise AnalyzeTaskError("检查GOPATH是否为空,若为空,则麻烦设置GOPATH指向项目依赖路径,然后重试。") |
| 315 | |
| 316 | def check_tool_usable(self, tool_params): |
| 317 | """ |
nothing calls this directly
no test coverage detected