-
Notifications
You must be signed in to change notification settings - Fork 13
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
Moves @microsoft/eslint-formatter from sarif-sdk to sarif-js-sdk #23
Conversation
93230fb
to
6780ade
Compare
|
||
expect(log.runs[0].tool.driver.name).toBe('ESLint'); | ||
expect(log.runs[0].tool.driver.informationUri).toBe('https://eslint.org'); | ||
expect(log.runs[0].tool.driver.version).toMatch(semverRegex()); |
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.
This assertion changed from the original implementation, since these tests executed a node that was able to resolve to a valid eslint
package version. As such, it makes more sense to change the test, since this more closely matches reality anyway (a formatter would always expect to have an eslint
that it's being run from)
Looking into how to preserve the commit history, for correct attribution. |
Preserving the history is a bit tricky here, since simply adding |
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.
I did a diff of sarif.js
from old and new repos. Appears to be all coding style changes (aka no semantic changes). lgtm.
Correct, @jeffersonking. It was just "Prettier"-fied. Thanks for the review! |
Since the sarif-js-sdk didn't exist when the
@microsoft/eslint-formatter-sarif
package was first authored, it made sense to house it under thesarif-sdk
. Now that this repository exists, that package is better aligned with this repository. It also gives us:@microsoft/jest-sarif
to validate the produced SARIF output.I attempted to keep the changes as small as possible, but the conflict that resulted from using
mocha
/chai
with our eslint configuration made it more of a challenge to just merge in as is. Converting it tojest
seemed prudent, though results in more files changed.cc/ @eddynaka as per our discussion offline.
When Merging
Ensure correct attribution from source repositor ( using
git log --pretty=format:"%an <%ae>" --no-merges main src/ESLint.Formatter/ | uniq -u
insarif-sdk
):