aboutcode-org / aboutcode-org/scancode-toolkit

Misses copyright statements if the holder name is lower case

Đang mở
#3,892 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### Description

It seems like `scancode-toolkit` fails to recognize a copyright statement if the holder name does not start with a capital letter. The following statement (taken from https://github.com/platformdirs/platformdirs/blob/4.1.0/LICENSE)

Copyright (c) 2010-202x The platformdirs developers

goes unnoticed, whereas (note the leading capital letters)

Copyright (c) 2010-202x The Platformdirs Developers

is correctly detected.

### How To Reproduce

1. Download https://github.com/platformdirs/platformdirs/blob/4.1.0/LICENSE.
2. Then run
```
scancode --json-pp - -c LICENSE
```
and notice how nothing is found.
3. Now edit the `LICENSE` file and replace `The platformdirs developers` with `The Platformdirs Developers`. Run the same command again and notice how the copyright statement is now correctly reported.

### System configuration

> For bug reports, it really helps us to know:

* What OS are you running on? (Windows/MacOS/Linux)

Linux

* What version of scancode-toolkit was used to generate the scan file?

32.0.8

* What installation method was used to install/run scancode? (pip/source download/other)

`pip`

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.