aboutcode-org / aboutcode-org/scancode-toolkit

numbered_text_lines in textcode.analysis should return the complete map file

Open
#3,335 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.6k
Forks
791
Avg merge
1d 12h
Merged PRs (30d)
5

Description

ATM for a map file `number_text_lines` only returns the value in `sourceContent`, instead it should return the entire file content as text.

```python
>>> from textcode.analysis import numbered_text_lines
>>> list(numbered_text_lines("file_with_empty_sourceContent.css.map"))
[]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.