From 143df04ede480a1aa78d2f2d55166187d5a2b6ba Mon Sep 17 00:00:00 2001 From: Wong Her Laang Date: Sat, 27 Jan 2018 22:23:07 +0800 Subject: [PATCH] Fixed typo. --- output/junit_xml_format.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output/junit_xml_format.go b/output/junit_xml_format.go index 1af54d3..9796079 100644 --- a/output/junit_xml_format.go +++ b/output/junit_xml_format.go @@ -31,7 +31,7 @@ type failure struct { Text string `xml:",innerxml"` } -func genereratePlaintext(issue *gas.Issue) string { +func generatePlaintext(issue *gas.Issue) string { return "Results:\n" + "[" + issue.File + ":" + issue.Line + "] - " + issue.What + " (Confidence: " + strconv.Itoa(int(issue.Confidence)) + @@ -62,7 +62,7 @@ func createJUnitXMLStruct(groupedData map[string][]*gas.Issue) junitXMLReport { Name: issue.File, Failure: failure{ Message: "Found 1 vulnerability. See stacktrace for details.", - Text: genereratePlaintext(issue), + Text: generatePlaintext(issue), }, } testsuite.Testcases = append(testsuite.Testcases, testcase)