Skip to content

docs: gaze report --language-only external analyzer dispatch #451

Backlog

Description

@jflowers

gaze report now dispatches to external analyzer discovery when --language is passed on its own. Previously --language without --analyzer was ignored on gaze report: inside a Go module the run silently used Go-native analysis, and outside one it failed with a misleading Go module-root error.

What changed (gaze issue #282, OpenSpec change report-language-dispatch):

  • gaze report dispatches to the external-analyzer path when --analyzer or --language is set — matching gaze crap, gaze quality, and gaze docscan, which already dispatch on either flag.
  • --language-only runs use the working directory as the module root (no Go module required).
  • When three-tier discovery (CLI flag → .gaze.yaml → gaze-analyzer-<language> on PATH) finds nothing, the run fails with no analyzer found for language "<lang>" instead of a Go module-root error.

Why it matters: a previously ignored or failing flag combination now dispatches to external analyzer discovery — a user-facing behavior change. gaze report --language python ./src now works directly, consistent with the other subcommands, so multi-language users no longer need to pass --analyzer explicitly.

Pages needing updates:

  • The gaze report CLI reference page (the website's equivalent of docs/reference/cli/report.md) — the --language flag row and the External Analyzer Mode section.
  • Any pages documenting --language dispatch, multi-language support, or external analyzers (e.g., README Multi-Language Support equivalents, external-analyzer guides).

Note: the in-repo docs (docs/reference/cli/report.md, README.md) were verified against the shipped behavior as part of the same change; only the README's Go-analysis fallback condition needed a correction (now requires both --analyzer and --language to be unset).

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