mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
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.
16 lines
538 B
Go
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
|
|
}
|