Skip to content

docs: add gaze analyze --format=html output document #283

Open

Description

@yvonnedevlinrh

What Changed

gaze analyze now supports --format=html, producing a self-contained, single-file HTML report.

The report includes:

  • Inline CSS with no external assets
  • Native <details> and <summary> elements for collapsible functions
  • Every analyzed function and detected side effect
  • Classification labels, confidence percentages, and detail metadata
  • Contextual escaping through Go's html/template
  • Deterministic output for identical input

HTML output is currently limited to gaze analyze. The quality, crap, and report commands continue to support only text and json.

Why It Matters

Users can generate portable, human-readable analysis reports for local review, CI artifacts, and team sharing without requiring a web server, JavaScript, or network access.

Pages To Update

  • CLI Reference: gaze analyze
    Add html to the supported --format values and document its behavior.

  • Output Formats Overview
    Explain that gaze analyze supports HTML in addition to text and JSON.

  • Getting Started / Quickstart
    Consider showing HTML output as an optional way to inspect and share results.

Example

gaze analyze --format=html ./pkg > report.html

Open report.html directly in a browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions