Fix lint warning

This commit is contained in:
Cosmin Cojocar 2023-03-20 09:42:21 +01:00 committed by Cosmin Cojocar
parent 8e7cf4bd72
commit 83fc5e63fa

View file

@ -32,7 +32,7 @@ func GenerateReport(rootPaths []string, data *gosec.ReportInfo) (*Report, error)
} }
rule := parseSarifRule(issue) rule := parseSarifRule(issue)
ruleIndex := 0 var ruleIndex int
rules, ruleIndex = addRuleInOrder(rules, rule) rules, ruleIndex = addRuleInOrder(rules, rule)
location, err := parseSarifLocation(issue, rootPaths) location, err := parseSarifLocation(issue, rootPaths)