Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix generation of SARIF reports #3193

Merged
merged 2 commits into from
Nov 6, 2024

Conversation

alcaeus
Copy link
Member

@alcaeus alcaeus commented Nov 6, 2024

This showed up in #3192. When PHPStan adds an error about unmatched exclusion patterns, getLine() returns null, which violates the schema. To work around this, we only add a region to an error if a line is present.

@alcaeus alcaeus requested a review from GromNaN November 6, 2024 10:03
@alcaeus alcaeus requested a review from a team as a code owner November 6, 2024 10:03
@alcaeus alcaeus force-pushed the fix-sarif-report-generation branch from 1edb598 to 6bfda1b Compare November 6, 2024 10:04
@alcaeus alcaeus enabled auto-merge (squash) November 6, 2024 10:09
@GromNaN GromNaN force-pushed the fix-sarif-report-generation branch from 6bfda1b to 5b337b4 Compare November 6, 2024 12:24
@GromNaN GromNaN changed the base branch from 5.x to 4.8 November 6, 2024 12:24
@alcaeus alcaeus merged commit 05a090b into mongodb:4.8 Nov 6, 2024
27 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants