mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
Pretty print xml result for better viewing.
This commit is contained in:
parent
1346bd37ca
commit
4059facfb9
1 changed files with 1 additions and 1 deletions
|
@ -122,7 +122,7 @@ func reportJUnitXML(w io.Writer, data *reportInfo) error {
|
|||
groupedData := groupDataByRules(data)
|
||||
junitXMLStruct := createJUnitXMLStruct(groupedData)
|
||||
|
||||
raw, err := xml.Marshal(junitXMLStruct)
|
||||
raw, err := xml.MarshalIndent(junitXMLStruct, "", "\t")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue