Skip to content

docs: gaze --gate-on-change flag (pre-change CRAP gate) #290

Open

Description

@jflowers

What changed

Gaze PR (unbound-force/gaze#268) adds a new --gate-on-change=<git-ref-or-diff-spec> flag to gaze crap. It computes CRAP scores only for functions modified in the current changeset (Boy Scout Rule), failing CI if any touched function exceeds the CRAP threshold. JSON output gains a changed_functions section.

Why it matters

This is the "Pre-change CRAP gate" (Group 2b) from the vibe-check epic, enabling teams to enforce that no newly changed function exceeds the complexity/coverage threshold — a foundational capability for the Review Council CRAP delta reporting that follows (Group 2c).

Pages needing updates

  • docs/reference/cli/crap.md — document the new flag, accepted values (staged / origin/main style refs), exit-code behavior, and the changed_functions JSON section
  • Any CLI reference / flag index that enumerates gaze crap flags
  • README quick-start if it shows gaze crap examples

Refs: unbound-force/gaze#268

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