Issue.Line is already a string

This commit is contained in:
Adrian Lanzafame 2017-10-01 10:31:39 +10:00
parent 3caf7c3154
commit 9c959ca0a9
2 changed files with 2 additions and 3 deletions

View file

@ -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"))
})

View file

@ -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(),