mirror of
https://github.com/securego/gosec.git
synced 2024-11-05 11:35:51 +00:00
Fix lint warning
This commit is contained in:
parent
8e7cf4bd72
commit
83fc5e63fa
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue