Skip to content
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

Update Issue Description #130

Merged
merged 1 commit into from
Oct 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading