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

Fix some SPDX license processing issues #8277

Merged
merged 6 commits into from
Feb 14, 2024
Merged

Fix some SPDX license processing issues #8277

merged 6 commits into from
Feb 14, 2024

Conversation

sschuberth
Copy link
Member

Please have a look at the individual commit messages for the details.

Align with the naming of similar blocks.

Signed-off-by: Sebastian Schuberth <[email protected]>
This keeps test blocks named after functions grouped at the bottom.

Signed-off-by: Sebastian Schuberth <[email protected]>
Show that for compound expressions the expression is a sub-expression of
itself.

Signed-off-by: Sebastian Schuberth <[email protected]>
Align with the semantics for compound expressions.

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth requested a review from a team as a code owner February 14, 2024 16:39
@sschuberth sschuberth enabled auto-merge (rebase) February 14, 2024 16:39
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commit message: "any anyway", "is be too strict"

The string-approach fails for compound expressions whose second operand
ends with an exception (the `WITH` operator binds stronger than `AND` /
`OR`). As the string comparison was meant as a performance optimization
anyway, just remove it.

In exchange, a special case for the `AND` operator is required, for
which the `containsAll()` check with valid choices is too strict: All
valid choices for an `AND` expression would contain the `AND` itself.
However, sub-expressions should be allowed to also match only either side
of the `AND`.

Signed-off-by: Sebastian Schuberth <[email protected]>
@sschuberth sschuberth merged commit 39b3a0f into main Feb 14, 2024
19 checks passed
@sschuberth sschuberth deleted the spdx-issues branch February 14, 2024 18:40
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.

2 participants