Skip to content

Commit

Permalink
Update Issue Description (#130)
Browse files Browse the repository at this point in the history
Signed-off-by: Marek Aufart <maufart@redhat.com>
  • Loading branch information
aufi authored Oct 11, 2024
1 parent 52dd24f commit f0c1709
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion analyzer-output-parser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,17 @@ func loadApplications() error {
// we don't need them in the report, ignore them
for idx := range app.Rulesets {
rs := &app.Rulesets[idx]
for _, violation := range rs.Violations {
for mapKey, violation := range rs.Violations {
violation.Extras = nil
for idx := range violation.Incidents {
inc := &violation.Incidents[idx]
inc.Variables = make(map[string]interface{})
// Propagate more detailed description to the Violation/display in UI
if idx == 0 {
violation.Description = fmt.Sprintf("%s\n\n%s", violation.Description, inc.Message)
}
}
rs.Violations[mapKey] = violation
}
}
}
Expand Down

0 comments on commit f0c1709

Please sign in to comment.