aboutcode-org / aboutcode-org/scancode-toolkit

An MIT notice is identified as MIT AND BSD-2-Clause-Views

未關閉
#3,767 0 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視
bug
主要語言
Python
星號
2.6k
分支
791
平均合併
1 天 12 小時
30 天內合併 PR
5

描述

### Description

An MIT notice is identified as `MIT AND BSD-2-Clause-Views` instead of just `MIT`.

This is an XML-like source file that looks like this:

```xml

...
```

### How To Reproduce

```
$ wget https://raw.githubusercontent.com/dotnet/wpf/fb28902a8f38ec80274c8120ba832feec97303c4/src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent/Styles/ListBox.xaml
$ scancode --json-pp - --license --unknown-licenses --license-references ListBox.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": [
"ListBox.xaml"
],
"--json-pp": "-",
"--license": true,
"--license-references": true,
"--unknown-licenses": true
},
...
"files": [
{
"path": "ListBox.xaml",
"type": "file",
"detected_license_expression": "mit AND bsd-2-clause-views",
"detected_license_expression_spdx": "MIT AND BSD-2-Clause-Views",
...

```

### System configuration

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

* 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/

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。