(text)
| 261 | return "function" |
| 262 | |
| 263 | def _parse_description(text): |
| 264 | desc_start = min(len(text), text.find('\n')) |
| 265 | brief = text[0:desc_start] |
| 266 | desc_end = min(len(text), text.find('\n@')) |
| 267 | description = text[desc_start:desc_end].strip() |
| 268 | if not brief and description: |
| 269 | brief = description.split('.\n')[0] |
| 270 | if len(brief) > 50: # trial and error of what fits into a single line |
| 271 | brief = brief[:50] + '...' |
| 272 | elif not description and brief: |
| 273 | description = brief |
| 274 | return description, brief |
| 275 | |
| 276 | def _parse_path(path): |
| 277 | file = "" |
no test coverage detected