-
Notifications
You must be signed in to change notification settings - Fork 94
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
Optimize partitioned logs by removing not relevant rules #2369
Conversation
This pull request introduces 1 alert when merging 55b1929 into cfb4f9b - view on LGTM.com new alerts:
|
return null; | ||
} | ||
|
||
var referencedRulesByIndex = new Dictionary<ReportingDescriptor, int>(); |
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.
var referencedRulesByIndex = new Dictionary<ReportingDescriptor, int>(); | ||
int index = 0; | ||
|
||
foreach (Result result in results) |
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.
…icrosoft/sarif-sdk into users/yongyan-gh/fileworkitems
src/Sarif/ExtensionMethods.cs
Outdated
@@ -37,6 +37,11 @@ public static IEnumerable<SarifLog> Split(this SarifLog sarifLog, SplittingStrat | |||
partitionFunction = (result) => result.Run.GetHashCode().ToString(); | |||
break; | |||
} | |||
case SplittingStrategy.PerRunPerTarget: | |||
{ | |||
partitionFunction = (result) => result.Locations.FirstOrDefault().PhysicalLocation.ArtifactLocation.Uri.OriginalString; |
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.
@@ -177,8 +177,6 @@ public virtual IReadOnlyList<SarifLog> SplitLogFile(SarifLog sarifLog) | |||
this.FilingResult = FilingResult.None; | |||
this.FiledWorkItems = new List<WorkItemModel>(); | |||
|
|||
sarifLog = sarifLog ?? throw new ArgumentNullException(nameof(sarifLog)); |
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.