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

Method run

client/task/basic/datahandler/filter.py:248–268  ·  view source on GitHub ↗

后置过滤,主要是在blame后执行过滤 :param params: :return:

(self, params)

Source from the content-addressed store, hash-verified

246
247class PostFilter(HandlerBase):
248 def run(self, params):
249 """
250 后置过滤,主要是在blame后执行过滤
251 :param params:
252 :return:
253 """
254 if not self.handle_type:
255 raise TaskFilterError("the filter type list is empty!")
256
257 if NO_FILTER in self.handle_type:
258 return params
259
260 if not params:
261 return params
262 # 逐个执行
263 Reporter(params).update_task_progress(InfoType.PostFilterTask)
264 if REVISION_FILTER in self.handle_type:
265 params = self._revision_filter(params)
266 if CCN_REVISION_FILTER in self.handle_type:
267 params = self._ccn_revision_filter(params)
268 return params
269
270 def _revision_filter(self, params):
271 """

Callers

nothing calls this directly

Calls 5

_revision_filterMethod · 0.95
_ccn_revision_filterMethod · 0.95
TaskFilterErrorClass · 0.90
ReporterClass · 0.90
update_task_progressMethod · 0.45

Tested by

no test coverage detected