mirror of
https://github.com/securego/gosec.git
synced 2024-12-26 04:25:52 +00:00
Fixed typo.
This commit is contained in:
parent
5b91afec36
commit
143df04ede
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue