aboutcode-org / aboutcode-org/scancode-toolkit

Multiple holders on separated lines are detected as one.

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

Description

input.txt:
```
Copyright: 2000-2010, Domenico Andreoli
2010-2011, Ramakrishnan Muthukrishnan
2011, Alessandro Ghedini
```

`scancode -ce --json-pp - input.txt`

Current results:

```json
"holders": [
{
"value": "Domenico Andreoli Ramakrishnan Muthukrishnan Alessandro Ghedini",
"start_line": 1,
"end_line": 3
}
],
```

Expected results: we should instead return 3 holders entries:
```json
"holders": [
{
"value": "Domenico Andreoli",
"start_line": 1,
"end_line": 1
},
{
"value": "Ramakrishnan Muthukrishnan",
"start_line": 2,
"end_line": 2
},
{
"value": "Alessandro Ghedini",
"start_line": 3,
"end_line": 3
}
],
```

`ScanCode version 21.2.25`

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.