Skip to content

Commit

Permalink
HdfConverter: Set ArtifactLocation and Region using SourceLocation
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Andrews <[email protected]>
  • Loading branch information
candrews committed Jul 28, 2023
1 parent f484805 commit f11a3df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sarif.Converters/HdfConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,14 +173,14 @@ private static (ReportingDescriptor, IList<Result>) SarifRuleAndResultFromHdfCon
{
ArtifactLocation = new ArtifactLocation
{
Uri = new Uri(".", UriKind.Relative),
Uri = new Uri(execJsonControl.SourceLocation.Ref ?? "", UriKind.Relative),
UriBaseId = "ROOTPATH",
},
Region = new Region
{
StartLine = 1,
StartLine = execJsonControl.SourceLocation.Line ?? 1,
StartColumn = 1,
EndLine = 1,
EndLine = execJsonControl.SourceLocation.Line ?? 1,
EndColumn = 1,
}
}
Expand Down

0 comments on commit f11a3df

Please sign in to comment.