From 83fc5e63fab5e556ed544ac4e0241bebd27cde81 Mon Sep 17 00:00:00 2001 From: Cosmin Cojocar Date: Mon, 20 Mar 2023 09:42:21 +0100 Subject: [PATCH] Fix lint warning --- report/sarif/formatter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/sarif/formatter.go b/report/sarif/formatter.go index 65646f3..cfc1486 100644 --- a/report/sarif/formatter.go +++ b/report/sarif/formatter.go @@ -32,7 +32,7 @@ func GenerateReport(rootPaths []string, data *gosec.ReportInfo) (*Report, error) } rule := parseSarifRule(issue) - ruleIndex := 0 + var ruleIndex int rules, ruleIndex = addRuleInOrder(rules, rule) location, err := parseSarifLocation(issue, rootPaths)