Skip to content

Commit 3482b3f

Browse files
authored
[MTA-5293] Revert "Update Issue Description (#130)" (#136)
Signed-off-by: Juan Manuel Leflet Estrada <[email protected]>
1 parent f0c1709 commit 3482b3f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

analyzer-output-parser/main.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,12 @@ func loadApplications() error {
119119
// we don't need them in the report, ignore them
120120
for idx := range app.Rulesets {
121121
rs := &app.Rulesets[idx]
122-
for mapKey, violation := range rs.Violations {
122+
for _, violation := range rs.Violations {
123123
violation.Extras = nil
124124
for idx := range violation.Incidents {
125125
inc := &violation.Incidents[idx]
126126
inc.Variables = make(map[string]interface{})
127-
// Propagate more detailed description to the Violation/display in UI
128-
if idx == 0 {
129-
violation.Description = fmt.Sprintf("%s\n\n%s", violation.Description, inc.Message)
130-
}
131127
}
132-
rs.Violations[mapKey] = violation
133128
}
134129
}
135130
}

0 commit comments

Comments
 (0)