mirror of
https://github.com/securego/gosec.git
synced 2025-03-19 21:08:30 +02:00
Fixed typo.
This commit is contained in:
parent
5b91afec36
commit
143df04ede
@ -31,7 +31,7 @@ type failure struct {
|
|||||||
Text string `xml:",innerxml"`
|
Text string `xml:",innerxml"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func genereratePlaintext(issue *gas.Issue) string {
|
func generatePlaintext(issue *gas.Issue) string {
|
||||||
return "Results:\n" +
|
return "Results:\n" +
|
||||||
"[" + issue.File + ":" + issue.Line + "] - " +
|
"[" + issue.File + ":" + issue.Line + "] - " +
|
||||||
issue.What + " (Confidence: " + strconv.Itoa(int(issue.Confidence)) +
|
issue.What + " (Confidence: " + strconv.Itoa(int(issue.Confidence)) +
|
||||||
@ -62,7 +62,7 @@ func createJUnitXMLStruct(groupedData map[string][]*gas.Issue) junitXMLReport {
|
|||||||
Name: issue.File,
|
Name: issue.File,
|
||||||
Failure: failure{
|
Failure: failure{
|
||||||
Message: "Found 1 vulnerability. See stacktrace for details.",
|
Message: "Found 1 vulnerability. See stacktrace for details.",
|
||||||
Text: genereratePlaintext(issue),
|
Text: generatePlaintext(issue),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
testsuite.Testcases = append(testsuite.Testcases, testcase)
|
testsuite.Testcases = append(testsuite.Testcases, testcase)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user