Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithRenderer ¶
ContextWithRenderer attaches a renderer to the context for downstream RenderTaxonomy calls.
Types ¶
type Option ¶
type Option func(*Renderer)
func WithCollector ¶
func WithCollector() Option
WithCollector enables result collection for JSON output.
func WithRegistry ¶
WithRegistry supplies a custom registry (defaults to docmgrrules.DefaultRegistry()).
func WithWriter ¶
WithWriter overrides the text output destination (defaults to stderr).
func WithoutText ¶
func WithoutText() Option
WithoutText disables text rendering (useful for tests/CI-only JSON).
type Renderer ¶
type Renderer struct {
// contains filtered or unexported fields
}
Renderer renders diagnostics and can optionally collect results for JSON output.
func NewRenderer ¶
NewRenderer builds a renderer configured with docmgr rules and output options.
func (*Renderer) Render ¶
Render renders the taxonomy, collecting results and printing text based on renderer options.
func (*Renderer) Results ¶
func (r *Renderer) Results() []*rules.RuleResult
Results returns collected rule results (empty slice if none).