aboutcode-org / aboutcode-org/scancode-toolkit

Inconsistencies wrt relative paths in `referenced_filenames`

Đang mở
#5,268 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug improve-license-detection question
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

This isn't so much a bug report as more of a question. I can see that in certain rule files there are relative paths in the license text, but in `referenced_filenames` it is inconsistent. Sometimes `referenced_filenames` includes the relative component (such as `..`), other times it doesn't.

An example is `mit_1356.RULE`:

```
---
license_expression: mit
relevance: 100
is_license_reference: yes
referenced_filenames:
- LICENSE
---

{{licensed under MIT}}, see ../LICENSE
```
while in `apache-2.0_1122.RULE`:

```
---
license_expression: apache-2.0
is_license_notice: yes
relevance: 100
referenced_filenames:
- ../../../LICENSE
---

## License

This code is licensed under {{Apache-2.0 }}(../../../LICENSE).
```

I could not find any guidance in the documentation about what the correct way is.

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.