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

Only compare source and sink in SARIF comparison #3772

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

koesie10
Copy link
Member

@koesie10 koesie10 commented Oct 23, 2024

This changes the SARIF comparison to only include the source and the sink of a path as an input into the comparison. This will result in a more useful comparison by filtering out results that are the same except for their path.

The results of a comparison on this branch:
Screenshot 2024-10-23 at 13 11 02

The same comparison on main:

Screenshot 2024-10-23 at 13 15 06

@koesie10 koesie10 marked this pull request as ready for review October 23, 2024 11:16
@koesie10 koesie10 requested a review from a team as a code owner October 23, 2024 11:16
Copy link
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Typo in a comment, and good to merge after that.

extensions/ql-vscode/src/compare/sarif-diff.ts Outdated Show resolved Hide resolved
Co-authored-by: Andrew Eisenberg <[email protected]>
@koesie10 koesie10 merged commit 50c6a19 into main Oct 28, 2024
16 checks passed
@koesie10 koesie10 deleted the koesie10/only-compare-source-sink branch October 28, 2024 12:53
@charisk
Copy link
Contributor

charisk commented Oct 29, 2024

Did we need to update the CHANGELOG for this at all?

koesie10 added a commit that referenced this pull request Oct 29, 2024
@koesie10
Copy link
Member Author

Did we need to update the CHANGELOG for this at all?

Good call, this will update the changelog: #3780

koesie10 added a commit that referenced this pull request Oct 29, 2024
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.

3 participants