当文件为None,或者java文件不在文件列表中,则返回None :param sourcepath: :return:
(self, sourcepath)
| 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 | |
| 224 | tool = Findbugs |
no outgoing calls
no test coverage detected