MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / analyze_callback

Method analyze_callback

client/tool/cobra.py:120–131  ·  view source on GitHub ↗

输出回调处理 :param line: :return:

(self, line)

Source from the content-addressed store, hash-verified

118 return issues
119
120 def analyze_callback(self, line):
121 """
122 输出回调处理
123 :param line:
124 :return:
125 """
126 subprocc_log(line)
127 if (
128 line.find("brew install findutils pleases!") != -1
129 or line.find("ModuleNotFoundError: No module named") != -1
130 ):
131 raise AnalyzeTaskError(f"请确认cobra是否安装成功:\n{self.install_steps}")
132
133 def check_tool_usable(self, tool_params):
134 """

Callers

nothing calls this directly

Calls 2

subprocc_logFunction · 0.90
AnalyzeTaskErrorClass · 0.90

Tested by

no test coverage detected