Skip to content

Commit 83fc5e6

Browse files
committed
Fix lint warning
1 parent 8e7cf4b commit 83fc5e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

report/sarif/formatter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func GenerateReport(rootPaths []string, data *gosec.ReportInfo) (*Report, error)
3232
}
3333

3434
rule := parseSarifRule(issue)
35-
ruleIndex := 0
35+
var ruleIndex int
3636
rules, ruleIndex = addRuleInOrder(rules, rule)
3737

3838
location, err := parseSarifLocation(issue, rootPaths)

0 commit comments

Comments
 (0)