aboutcode-org / aboutcode-org/scancode-toolkit

Multiple holders on separated lines are detected as one.

未關閉
#2,445 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

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`

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。