aboutcode-org / aboutcode-org/scancode-toolkit

Copyrights not detected if year is missing from (c) or Copyright declaration

Đang mở
#4,722 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 looks like Scancode fails to recognize a copyright statement if the year as well as the `(c)`, or `Copyright` is not included in the declaration.

Examples of declaration not found by scancode:

```
Copyright The OpenTelemetry Authors
```

```
(c) The OpenTelementry Authors
```

### How To Reproduce

1. Download either:
- https://github.com/open-telemetry/opentelemetry-go-contrib/blob/main/version.go
- https://github.com/containerd/errdefs/blob/main/errors.go
2. Then run to scan:
```
./scancode --json-pp - -c version.go
```
or
```
./scancode --json-pp - -c errors.go
```

And no copyrights are detected in these files.

### System configuration

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

Linux

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

32.5.0

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

source download

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.