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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add filtering of NOASSERTION #216

Merged
merged 5 commits into from Feb 1, 2023
Merged

Add filtering of NOASSERTION #216

merged 5 commits into from Feb 1, 2023

Conversation

Jake-Shadle
Copy link
Member

If using https://clearlydefined.io to gather license information, that service will conservatively add NOASSERTION to the expression for files that contain license like data, but an SPDX license ID could not be confidently ascribed to it. This can result in the license expression for the crate to contain 1 or more NOASSERTION identifiers, which would require the user to accept that (not really valid) ID to pass the license check. By setting this field to true, files that have a NOASSERTION id will instead be scanned locally, which will generally either figure out the license, or else skip that file.

For a real world example of what this looks like, webpki:0.22.0's LICENSE file is an ISC license, however it has a preamble that is not part of the ISC license that trips up clearly defined's inspection, causing it to be attributed with ISC AND NOASSERTION. Locally scanning the file will be more tolerant and just attribute it with ISC.

This also makes it so that we actually run cargo about on itself in CI to check that our config is actually good 馃槢

@Jake-Shadle Jake-Shadle changed the title Add filtering of NOASSERTION Add filtering of NOASSERTION Feb 1, 2023
@Jake-Shadle Jake-Shadle merged commit 1669423 into main Feb 1, 2023
@Jake-Shadle Jake-Shadle deleted the cfg/filter-noassertion branch February 1, 2023 22:01
tronical added a commit to slint-ui/slint that referenced this pull request Feb 24, 2023
Filter NOASSERTION, as explained in
EmbarkStudios/cargo-about#216 (by the example of
webpki as well).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant