Files
skillshare/internal/audit/analyzer_integrity.go
T
Willie 1b284e92b5 feat(audit): add semantic coloring to TUI summary footer
Labels use dim style while values use bold semantic colors, making
counts visually prominent. Threat category breakdown now colors each
category independently (injection=red, exfiltration=orange, etc.)
instead of uniform yellow, so users can distinguish threat types at
a glance.
2026-03-03 16:08:11 +08:00

16 lines
544 B
Go

package audit
// integrityAnalyzer wraps content hash integrity verification.
// Runs at skill scope after all files have been cached.
type integrityAnalyzer struct{}
func (a *integrityAnalyzer) ID() string { return AnalyzerIntegrity }
func (a *integrityAnalyzer) Scope() AnalyzerScope { return ScopeSkill }
func (a *integrityAnalyzer) Analyze(ctx *AnalyzeContext) ([]Finding, error) {
if ctx.DisabledIDs["content-integrity"] {
return nil, nil
}
return checkContentIntegrity(ctx.SkillPath, ctx.FileCache, ctx.AllFiles), nil
}