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

Method get_file_path_from_sourcepath

client/tool/findbugs.py:209–221  ·  view source on GitHub ↗

当文件为None,或者java文件不在文件列表中,则返回None :param sourcepath: :return:

(self, sourcepath)

Source from the content-addressed store, hash-verified

207 return self.get_file_path_from_sourcepath(sourcepath)
208
209 def get_file_path_from_sourcepath(self, sourcepath):
210 """
211 当文件为None,或者java文件不在文件列表中,则返回None
212 :param sourcepath:
213 :return:
214 """
215 if not sourcepath:
216 return None
217 sourcepath = sourcepath.replace("\\", "/")
218 for source_file in self._source_files:
219 if source_file.endswith(sourcepath):
220 return source_file
221 return None
222
223
224tool = Findbugs

Callers 2

data_handleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected