mirror of
https://github.com/securego/gosec.git
synced 2024-12-25 03:55:54 +00:00
Issue.Line is already a string
This commit is contained in:
parent
3caf7c3154
commit
9c959ca0a9
2 changed files with 2 additions and 3 deletions
|
@ -40,7 +40,7 @@ var _ = Describe("Issue", func() {
|
|||
issue := gas.NewIssue(ctx, target, "", gas.High, gas.High)
|
||||
Expect(issue).ShouldNot(BeNil())
|
||||
Expect(issue.Code).Should(MatchRegexp(`"bar"`))
|
||||
Expect(issue.Line).Should(Equal(2))
|
||||
Expect(issue.Line).Should(Equal("2"))
|
||||
|
||||
})
|
||||
|
||||
|
|
|
@ -19,7 +19,6 @@ import (
|
|||
"encoding/json"
|
||||
htmlTemplate "html/template"
|
||||
"io"
|
||||
"strconv"
|
||||
plainTemplate "text/template"
|
||||
|
||||
"github.com/GoASTScanner/gas"
|
||||
|
@ -93,7 +92,7 @@ func reportCSV(w io.Writer, data *reportInfo) error {
|
|||
for _, issue := range data.Issues {
|
||||
err := out.Write([]string{
|
||||
issue.File,
|
||||
strconv.Itoa(issue.Line),
|
||||
issue.Line,
|
||||
issue.What,
|
||||
issue.Severity.String(),
|
||||
issue.Confidence.String(),
|
||||
|
|
Loading…
Reference in a new issue