mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Tier and cross-skill findings are generated programmatically rather than compiled from the rule list, so they bypassed the disabled-ID filter applied at rule-compile time. Setting enabled:false in audit-rules.yaml marked the rule disabled in the listing but the scan still fired it at full severity. Filter synthetic findings against the disabled-ID set in both the skill-scan and single-file paths, threading the set through the cross-skill call sites (analyzer, cmd, server). Fixes #204.
13 lines
483 B
Go
13 lines
483 B
Go
package audit
|
|
|
|
// tierAnalyzer generates findings from tier combination risk analysis.
|
|
// It runs at skill scope using the accumulated TierProfile.
|
|
type tierAnalyzer struct{}
|
|
|
|
func (a *tierAnalyzer) ID() string { return AnalyzerTier }
|
|
func (a *tierAnalyzer) Scope() AnalyzerScope { return ScopeSkill }
|
|
|
|
func (a *tierAnalyzer) Analyze(ctx *AnalyzeContext) ([]Finding, error) {
|
|
return filterDisabledFindings(TierCombinationFindings(ctx.TierProfile), ctx.DisabledIDs), nil
|
|
}
|