Files
skillshare/internal/audit/analyzer_structure.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
538 B
Go

package audit
// structureAnalyzer wraps dangling link detection for markdown files.
// Runs at skill scope after all markdown files have been collected.
type structureAnalyzer struct{}
func (a *structureAnalyzer) ID() string { return AnalyzerStructure }
func (a *structureAnalyzer) Scope() AnalyzerScope { return ScopeSkill }
func (a *structureAnalyzer) Analyze(ctx *AnalyzeContext) ([]Finding, error) {
if ctx.DisabledIDs["dangling-link"] {
return nil, nil
}
return checkDanglingLinks(ctx.MDFiles, ctx.MDLinks), nil
}