Skip to content

feat: analyzer-wide exclude globs in .gaze.yaml, forwarded to external analyzers #468

Backlog

Description

@jflowers

Problem

There's no way to keep a directory out of CRAP, GazeCRAP or quality scoring
except by narrowing the packages argument. The only exclude config today is
docscan's (internal/config/config.go).

That breaks down for projects whose code isn't under one prefix. The
jflowers/opencode-* plugins put their entry at a root index.ts (or
src/index.ts) and also carry uf's scaffolded .opencode/ tree. On
jflowers/opencode-supervisor with gaze 2.7.0 and reading-stone 0.2.2:

Pattern Functions CRAPload GazeCRAPload
./... 1120 350 470
./src/... ./index.ts 306 21 140

About 800 of the ./... functions are untested .opencode/ scaffold code,
which dominates the report. Explicit patterns work, but every repo has to work
out its own list, and the scaffold can't default it.

Proposal

  • Add analyzer-wide exclude globs to .gaze.yaml (e.g. .opencode/**).
  • Apply them to the Go-native path, and forward them to external analyzers, so
    reading-stone (TypeScript) and snake-eyes (Python) honor the same list.
  • Forwarding them is likely an analyzer-protocol addition (an exclude param
    alongside patterns, protocol v1.3?), so the maintainers should decide the
    wire shape.

Excluding uf's .opencode/ inside reading-stone was considered and rejected:
it's a tool-specific directory, and every analyzer would need the same rule.

reading-stone already prunes node_modules, dist, build, coverage and
.git from discovery (its FR-003); this is about project-chosen paths.

🤖 Generated with Claude Code

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

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions