dotnet / dotnet/source-build

Consider showing only disallowed licenses in `UpdatedLicences.<repo>.json`

Open
#4,262 0 comments 0 reactions 0 assignees View on GitHub
area-testing
Dominant language
No language data
Stars
287
Forks
145
Avg merge
1d 22h
Merged PRs (30d)
10

Description

When a new license is detected, the results can sometimes be difficult to parse. Take this result from nuget-client, for example:

```json
{
"files": [
{
"path": "build/NOTICES.txt",
"detected_license_expression": "apache-2.0 AND (apache-2.0 AND unicode-mappings) AND (unicode-mappings AND python) AND bsd-new AND (mit AND x11) AND x11 AND (lgpl-2.0-plus OR cc-sa-1.0) AND bsd-simplified AND mit AND ms-lpl AND apache-1.1 AND (sax-pd AND mit)"
}
]
}
```

The `detected_license_expression` lists many licenses, but the only license that is not listed as an allowed license is `cc-sa-1.0`. It would be helpful if the results instead looked like this:

```json
{
"files": [
{
"path": "build/NOTICES.txt",
"detected_license_expression": "cc-sa-1.0"
}
]
}
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.