markdown

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package markdown renders a Diagnostic as Balanced-Coupling-aligned Markdown: lint-message advisory format, BC vocabulary throughout, clearly-labeled "Supporting structural metrics (beyond Balanced Coupling)" and "Distance confidence" sections. Reads well both as raw text and rendered Markdown; parseable by AI agents without NLP.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer struct{}

Renderer formats a Diagnostic as BC-aligned Markdown. Satisfies engine.Renderer.

func New

func New() *Renderer

New returns a Renderer.

func (*Renderer) Format

func (r *Renderer) Format() string

Format returns "markdown".

func (*Renderer) Render

func (r *Renderer) Render(d diagnostic.Diagnostic, w io.Writer) error

Render writes the BC-aligned Markdown report for d to w. Sections follow design §8:

  1. Verdict + config_hash + tool/coverage
  2. Gate violations (rules)
  3. Balanced Coupling advisories — lint-message format
  4. Supporting structural metrics (beyond Balanced Coupling)
  5. Distance confidence
  6. Agent tasks

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL