Files
skillshare/internal/audit/analyzer_tier.go
T
Willie 6e86537987 fix(audit): honor enabled:false for synthetic tier and cross-skill findings
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.
2026-06-05 20:51:32 +08:00

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
}