Commit 1f2e5e3
fix(governance): enumerate banned-language demos in .hypatia-ignore (#44)
## Summary
Adds a `.hypatia-ignore` with 9 exemptions for the cross-language
demonstration files this repo ships by design
(`examples/{java,kotlin,swift,go}/*` + the 3 legacy `.res` files).
## Why
absolute-zero is the estate's language-demonstration repo — it ships
example files in ~9 banned languages on purpose, to illustrate "what NOT
to use." Since standards#168 merged (governance-reusable.yml now covers
Java/Kotlin/Swift/Dart/V-lang/ATS2/Makefile in addition to
ReScript/Go/Python), every push to `main` has gone red on `governance /
Language / package anti-pattern policy`.
Latest 3 runs on main: all failure (governance.yml runs 26407681719,
26371098456, 26333708931).
## Files exempted
| Language | File | Reason |
|---|---|---|
| .res | `src/AuditTrail.res` | Legacy ReScript pre-`.affine` migration
|
| .res | `interpreters/rescript/malbolgeInterpreter.res` | Demo
interpreter |
| .res | `examples/SafeDOMExample.res` | DOM example |
| .go | `examples/go/nop.go` | Cross-lang nop study |
| .java | `examples/java/Nop.java` | Cross-lang nop study |
| .java | `examples/java/BalancedOps.java` | Cross-lang ops study |
| .kt | `examples/kotlin/Nop.kt` | Cross-lang nop study |
| .kt | `examples/kotlin/BalancedOps.kt` | Cross-lang ops study |
| .swift | `examples/swift/Nop.swift` | Cross-lang nop study |
None are imported into the toolchain build.
## Follow-up
Once standards#180 (file_pattern glob matching in `in_baseline()`)
merges, this whole enumerated list can collapse to a single
`examples/**` `file_pattern` entry in `.hypatia-baseline.json`. The
`.res` files will migrate to `.affine` separately under the existing
2026-Q3 plan.
## Test plan
- [ ] CI: governance/Language-policy step passes (9 exempt entries
visible in run log)
- [ ] absolute-zero main goes green for the first time since
standards#168
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 92d3421 commit 1f2e5e3
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
0 commit comments