-
Notifications
You must be signed in to change notification settings - Fork 88
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
Flowing suppression to baseline #2390
Flowing suppression to baseline #2390
Conversation
|
||
SarifLog currentSarifLog = PrereleaseCompatibilityTransformer.UpdateToCurrentVersion(fileSystem.FileReadAllText(options.OutputFilePath), | ||
options.Formatting, | ||
out string _); |
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 will enable us to accept any version.
@@ -3,11 +3,8 @@ | |||
|
|||
namespace Microsoft.CodeAnalysis.Sarif.Driver | |||
{ | |||
public abstract class DriverCommand<T> | |||
public abstract class DriverCommand<T> : CommandBase |
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.
if (PreviousResult.Result.Suppressions != null && CurrentResult.Result.Suppressions == null) | ||
{ | ||
result.Suppressions = PreviousResult.Result.Suppressions; | ||
} |
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 will flow suppressions from the baseline file to the current file. #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.
so here we don't consider current file's suppression?
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.
Since we start from the current, we just have to compare previous with current. if previous exist and current does not, we should replace.
otherwise, we will keep the current :)
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.
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.
No description provided.