aboutcode-org / aboutcode-org/scancode-toolkit

An MIT notice is identified as `mit AND mpl-2.0`

Đang mở
#3,768 0 bình luận 1 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

An MIT notice is identified as `MIT AND MPL-2.0`:

```xml

...
```

### How To Reproduce

```
$ wget https://raw.githubusercontent.com/dotnet/wpf/fb28902a8f38ec80274c8120ba832feec97303c4/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/MenuItem.xaml
$ scancode --json-pp - --license --unknown-licenses --license-references MenuItem.xaml
Setup plugins...
Collect file inventory...
Scan files for: licenses with 1 process(es)...
[####################] 2
{
"headers": [
{
"tool_name": "scancode-toolkit",
"tool_version": "32.1.0",
"options": {
"input": [
"MenuItem.xaml"
],
"--json-pp": "-",
"--license": true,
"--license-references": true,
"--unknown-licenses": true
},
...
"files": [
{
"path": "MenuItem.xaml",
"type": "file",
"detected_license_expression": "mit AND mpl-2.0",
"detected_license_expression_spdx": "MIT AND MPL-2.0",
"license_detections": [
{
"license_expression": "mit AND mpl-2.0",
"license_expression_spdx": "MIT AND MPL-2.0",
"matches": [
...
{
"license_expression": "mpl-2.0",
"spdx_license_expression": "MPL-2.0",
"from_file": "MenuItem.xaml",
"start_line": 2,
"end_line": 3,
"matcher": "3-seq",
"score": 34.21,
"matched_length": 13,
"match_coverage": 34.21,
"rule_relevance": 100,
"rule_identifier": "mpl-2.0_138.RULE",
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/mpl-2.0_138.RULE"
},
...

```

### System configuration

* What OS are you running on? Linux
* What version of scancode-toolkit was used to generate the scan file? 32.1.0
* What installation method was used to install/run scancode? 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.