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

Method _get_package_json

client/tool/fbrjs.py:140–152  ·  view source on GitHub ↗

查找项目目录下的package.json :param root_dir: :param toscans: :return:

(self, root_dir, toscans)

Source from the content-addressed store, hash-verified

138 )
139
140 def _get_package_json(self, root_dir, toscans):
141 """
142 查找项目目录下的package.json
143 :param root_dir:
144 :param toscans:
145 :return:
146 """
147 for fileOrDir in os.listdir(root_dir):
148 path = os.path.join(root_dir, fileOrDir)
149 if os.path.isdir(path):
150 self._get_package_json(path, toscans)
151 elif fileOrDir == "package.json":
152 toscans.append(path)
153
154
155tool = Fbrjs

Callers 1

analyzeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected