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

Method analyze

client/tool/linecount.py:53–64  ·  view source on GitHub ↗

统计source_dir代码行信息 :param params: :return:

(self, params)

Source from the content-addressed store, hash-verified

51 }
52
53 def analyze(self, params):
54 """
55 统计source_dir代码行信息
56 :param params:
57 :return:
58 """
59 code_line_data = CodeLineCount(params).run()
60 scm_info = self.__get_scm_info(params)
61 return {
62 "code_line": code_line_data,
63 "scm_info": scm_info
64 }
65
66
67tool = LineCount

Callers

nothing calls this directly

Calls 3

__get_scm_infoMethod · 0.95
CodeLineCountClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected