Skip to content

Fix invalid SARIF region for issues reported at line 0#11903

Open
eyupcanakman wants to merge 1 commit into
vimeo:6.xfrom
eyupcanakman:fix/sarif-region-clamp-9712
Open

Fix invalid SARIF region for issues reported at line 0#11903
eyupcanakman wants to merge 1 commit into
vimeo:6.xfrom
eyupcanakman:fix/sarif-region-clamp-9712

Conversation

@eyupcanakman

Copy link
Copy Markdown
Contributor

An issue reported at line 0, such as UnusedBaselineEntry from a stale baseline, is written to the SARIF report with startLine 0. The SARIF schema requires region line and column values to be at least 1, so the report fails validation. The region values are now raised to at least 1.

Fixes #9712

An issue reported at line 0, such as UnusedBaselineEntry from a stale baseline, is written to the SARIF report with startLine 0. The SARIF schema requires region line and column values to be at least 1, so the report fails validation. The region values are now raised to at least 1.

Fixes vimeo#9712
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.

Broken SARIF output

1 participant