Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .gauntlet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
custom_gates:
# Repository structure is a whole-run invariant and is never diff-suppressed.
structlint:
command: ["structlint", "validate", "--format", "github"]
parser: github-annotations
line_scoped: false

# Duplication findings carry source locations and are scoped to changed lines.
dupehound:
command: ["dupehound", "scan", "--format", "github", "--quiet"]
parser: github-annotations
line_scoped: true
14 changes: 4 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,6 @@ jobs:
INCREMENTAL: false
REVIEW_RULES: concise

validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: AxeForging/structlint@main
with:
config: .structlint.yaml
comment-on-pr: "true"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

gauntlet:
runs-on: ubuntu-latest
permissions:
Expand All @@ -63,6 +53,10 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: "1.25"
- name: Install custom quality gates
run: |
go install github.com/AxeForging/structlint@v0.6.0
go install github.com/AxeForging/dupehound@v0.1.0
# Dogfood: gauntlet runs gauntlet against its own PR diff.
- uses: ./
with:
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ make test-integration # bin-driven scenarios in temp repos
make build # bin/gauntlet with real ldflag build info
```

Gauntlet dogfoods its own orchestration through `.gauntlet.yml`: Structlint runs as
a whole-repository structural invariant, while Dupehound annotations are scoped to the
PR diff. Install both released gates before reproducing CI locally:

```bash
go install github.com/AxeForging/structlint@v0.6.0
go install github.com/AxeForging/dupehound@v0.1.0
gauntlet check --staged --format agent
```

Spec: [docs/specs/001-gauntlet-core.md](docs/specs/001-gauntlet-core.md). Plan: [docs/specs/001-gauntlet-core.plan.md](docs/specs/001-gauntlet-core.plan.md). Roadmap: [ROADMAP.md](ROADMAP.md).

## License
Expand Down
Loading