mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-18 18:04:17 +00:00
chore(audit): name the SARIF rule index key correctly
The map has been keyed by ruleID, with Pattern only as a fallback, since rule IDs were introduced; the comment still said pattern.
This commit is contained in:
@@ -108,7 +108,7 @@ type SARIFOptions struct {
|
||||
// It deduplicates rules by ID, records their maximum severity, and maps each
|
||||
// Finding to a sarifResult with the correct ruleIndex.
|
||||
func ToSARIF(results []*Result, opts SARIFOptions) *sarifLog {
|
||||
ruleIndex := map[string]int{} // pattern → index in rules slice
|
||||
ruleIndex := map[string]int{} // ruleID → index in rules slice
|
||||
var rules []sarifReportingDesc
|
||||
var sarifResults []sarifResult
|
||||
var coverage []map[string]any
|
||||
|
||||
Reference in New Issue
Block a user