diff --git a/issue_test.go b/issue_test.go index 451ff54..90a6bdd 100644 --- a/issue_test.go +++ b/issue_test.go @@ -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")) }) diff --git a/output/formatter.go b/output/formatter.go index 1bdd95f..4a87661 100644 --- a/output/formatter.go +++ b/output/formatter.go @@ -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(),