Skip to content

Commit

Permalink
HdfConvert: Use HDF "control.descriptions" for "help" (#2633)
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Andrews <[email protected]>
  • Loading branch information
candrews committed Jul 24, 2023
1 parent b464653 commit 3f014e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Sarif.Converters/HdfConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ private static (ReportingDescriptor, IList<Result>) SarifRuleAndResultFromHdfCon
{
Level = SarifLevelFromHdfImpact(execJsonControl.Impact),
},
Help = new MultiformatMessageString
{
Text = string.Join("\n", execJsonControl.Descriptions.Select(d => d.Label + ":\n" + d.Data))
},
HelpUri = null,
Relationships = new List<ReportingDescriptorRelationship>(
((JArray)execJsonControl.Tags["nist"])
Expand Down

0 comments on commit 3f014e4

Please sign in to comment.