-
Notifications
You must be signed in to change notification settings - Fork 12
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
(GH-494) Support setting of baseline state for each issue #638
(GH-494) Support setting of baseline state for each issue #638
Conversation
src/Cake.Issues.Reporting.Sarif/SarifIssueReportFormatSettings.cs
Outdated
Show resolved
Hide resolved
src/Cake.Issues.Reporting.Sarif.Tests/SarifIssueReportGeneratorTests.cs
Outdated
Show resolved
Hide resolved
src/Cake.Issues.Reporting.Sarif.Tests/SarifIssueReportGeneratorTests.cs
Outdated
Show resolved
Hide resolved
b9a378b
to
16c4cec
Compare
src/Cake.Issues.Reporting.Sarif.Tests/SarifIssueReportGeneratorTests.cs
Outdated
Show resolved
Hide resolved
@christianbumann See my comment above, with the argument on the IssueComparer ctor it should be possible to support |
We might also think about setting |
259c21c
to
598b244
Compare
598b244
to
fa552b0
Compare
BaselineGuid added |
Update added |
fa552b0
to
ab14263
Compare
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 fixed a few comment issues and made smaller changes to test cases.
I would like to have another look at the implementation to see if there is another implementation which does not require that much repeated loops through issues lists.
src/Cake.Issues.Reporting.Sarif/SarifIssueReportFormatSettings.cs
Outdated
Show resolved
Hide resolved
src/Cake.Issues.Reporting.Sarif/SarifIssueReportFormatSettings.cs
Outdated
Show resolved
Hide resolved
src/Cake.Issues.Reporting.Sarif/SarifIssueReportFormatSettings.cs
Outdated
Show resolved
Hide resolved
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.
Looks good to me, imho on test could be improved and another test could be added.
The Sarif report contains the BaselineState of an issue based on the SarifIssueReportFormatSettings.ExistingIssues information. BaseLineState Updated is not supported.
def2c0f
to
80bda6f
Compare
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.
Using the new logic is not required if no existing issues are provided. But without existing issues imho the performance loss is very very small - so this would give more security against the new logic. So go for if with the pull request 👍
The new logic is required to mark the issues as new… (your comment…) |
@christianbumann |
The Sarif report contains the BaselineState of an issue based on the SarifIssueReportFormatSettings.ExistingIssues information. BaseLineState Updated is not supported.
Fixes #494