mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +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)
|
groupedData := groupDataByRules(data)
|
||||||
junitXMLStruct := createJUnitXMLStruct(groupedData)
|
junitXMLStruct := createJUnitXMLStruct(groupedData)
|
||||||
|
|
||||||
raw, err := xml.Marshal(junitXMLStruct)
|
raw, err := xml.MarshalIndent(junitXMLStruct, "", "\t")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue