Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
omajid opened this issue May 6, 2024 · 0 comments
Open

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

omajid opened this issue May 6, 2024 · 0 comments
Labels

Comments

@omajid
Copy link

omajid commented May 6, 2024

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:

<!--
    This Source Code Form is subject to the terms of the MIT License.
    If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
    Copyright (C) Leszek Pomianowski and WPF UI Contributors.
    All Rights Reserved.
-->
<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:controls="clr-namespace:System.Windows;assembly=PresentationFramework">
...

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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant