-
Notifications
You must be signed in to change notification settings - Fork 29
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: Add dummy location data to conform to SARIF spec #988
Conversation
This reverts commit 87341d8.
…-sarif-converter into add-dummy-location
@@ -15,7 +15,7 @@ import { EnvironmentData } from './environment-data'; | |||
import { getInvocations } from './invocation-provider'; | |||
import { ResultToRuleConverter } from './result-to-rule-converter'; | |||
import { formatSarifResultMessage } from './sarif-result-message-formatter'; | |||
import { axeTagsToWcagLinkData, WCAGLinkData } from './wcag-link-data'; | |||
import { WCAGLinkData, axeTagsToWcagLinkData } from './wcag-link-data'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something seems to have changed in prettier
@@ -15,7 +15,7 @@ import { getEnvironmentDataFromResults } from './environment-data-provider'; | |||
import { getInvocations } from './invocation-provider'; | |||
import { ResultToRuleConverter } from './result-to-rule-converter'; | |||
import { formatSarifResultMessage } from './sarif-result-message-formatter'; | |||
import { axeTagsToWcagLinkData, WCAGLinkData } from './wcag-link-data'; | |||
import { WCAGLinkData, axeTagsToWcagLinkData } from './wcag-link-data'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something seems to have changed in prettier
🎉 This PR is included in version 2.10.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Details
As called out in #961, our SARIF doesn't have a fully formed location. Since we don't have meaningful data for this, the "least bad" solution was to insert dummy data for the
startLine
property. This PR includes 2 code changes, plus a bunch of refreshed SARIF files generated via the CLI tool. I noticed that the refreshed version ofbasic-axe-3.2.2.sarif
is pretty-printed differently than what we had before. I'm guessing that the tool shifted at some point and that this is the first time the file has been regenerated with the current tool.Motivation
Address #961 for better tool compatibility
Context
Pull request checklist
fix:
,feat:
, etc, and is suitable for user-facing release notes)BREAKING CHANGE:
yarn precheckin