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

omit null value in SARIF taxonomies property #2745

Merged
merged 7 commits into from
Dec 12, 2023
Merged

omit null value in SARIF taxonomies property #2745

merged 7 commits into from
Dec 12, 2023

Conversation

CodingDepot
Copy link
Contributor

This fixes a conflict with the SARIF specification regarding taxonomies where SpotBugs would add a null value into the list if no other taxonomy was applicable.
The current implementation can create problems with parsers that expect either an empty list or a valid object.

Closes #2744 .


Make sure these boxes are checked before submitting your PR -- thank you!

  • Added an entry into CHANGELOG.md if you have changed SpotBugs code

@JuditKnoll
Copy link
Collaborator

JuditKnoll commented Dec 5, 2023

Thank you for your PR 😄 Can you please add some tests?

@CodingDepot
Copy link
Contributor Author

Sure 🙂

I've added a small test that checks for correct values (or absence thereof) of empty taxonomies and results.

@hazendaz hazendaz self-assigned this Dec 12, 2023
@hazendaz hazendaz merged commit 081a76d into spotbugs:master Dec 12, 2023
9 checks passed
@hazendaz hazendaz added this to the SpotBugs 4.8.4 milestone Dec 18, 2023
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.

(SARIF) null value in taxonomies is throwing off parsers
4 participants