MCPcopy Index your code
hub / github.com/Tencent/CodeAnalysis / check_tool_usable

Method check_tool_usable

client/task/toolmodel.py:196–215  ·  view source on GitHub ↗

检查工具是否可以用,具体检查内容: 注意:此部分只检查compile与analyze等工具所属的步骤,datahandle不属于此部分 :return:支持该工具的task类型数组,若不支持返回空数组

(self, tool_params)

Source from the content-addressed store, hash-verified

194 return NO_ADD_PERSON_INFO
195
196 def check_tool_usable(self, tool_params):
197 '''
198 检查工具是否可以用,具体检查内容:
199 注意:此部分只检查compile与analyze等工具所属的步骤,datahandle不属于此部分
200 :return:支持该工具的task类型数组,若不支持返回空数组
201 '''
202 default_tool_usable_set = []
203 try:
204 self.compile(None)
205 except NotImplementedError:
206 pass
207 except:
208 default_tool_usable_set.append('compile')
209 try:
210 self.analyze(None)
211 except NotImplementedError:
212 pass
213 except:
214 default_tool_usable_set.append('analyze')
215 return default_tool_usable_set
216
217 def get_private_processes(self):
218 '''

Callers

nothing calls this directly

Calls 2

compileMethod · 0.95
analyzeMethod · 0.95

Tested by

no test coverage detected