aboutcode-org / aboutcode-org/scancode-toolkit

ignorable_copyrights are not ignored?

Open
#3,813 2 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

I am scanning https://github.com/omniorb/omniorb/blob/main/LICENSE with
```
ScanCode version: 32.1.0
ScanCode Output Format version: 3.1.0
SPDX License list version: 3.23

scancode.exe -lci --license-text --ignore-binaries --only-findings -n 8 --json-pp
```

and the result contains:
```
"spdx_license_expression": "GPL-2.0-only"
...
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_872.RULE",
...
"copyrights": [
{
"copyright": "Copyright (c) 1989, 1991 Free Software Foundation, Inc., ",
"start_line": 4,
"end_line": 4
},
{
"copyright": "copyrighted by the Free Software Foundation",
"start_line": 252,
"end_line": 253
}
```

But the [rule above ](https://github.com/nexB/scancode-toolkit/blob/develop/src/licensedcode/data/rules/gpl-2.0_872.RULE) states:
```
---
license_expression: gpl-2.0
is_license_text: yes
relevance: 100
ignorable_copyrights:
- Copyright (c) 1989, 1991 Free Software Foundation, Inc.,
- copyrighted by the Free Software Foundation
...
```

What is the point of the ignorable_copyrights if they are still listed in the result with exactly this rule?

Am I misunderstanding sth about this attribute, or is this a bug?

Cheers.

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.