aboutcode-org / aboutcode-org/scancode-toolkit

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

未关闭
#4,722 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

### 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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。