Commit 8636e15
fix(hypatia): scoped exemption for the unsatisfiable unsafe_block rule (#147)
Follow-up to #146 — the one finding that survived. hypatia's
`unsafe_block` rule is a bare `unsafe\s*\{` regex
(`lib/rules/code_safety.ex`): it flags every unsafe block regardless of
documentation, so no SAFETY comment can ever satisfy it (the adjacency
fix in #146 was a no-op against a rule that never looks). The single
unsafe block in my-llvm is mandatory (inkwell declares `build_gep`
unsafe) and fully documented, so this uses the same scoped
`.hypatia-ignore` mechanism as the existing `coq_axiom`/`transmute`
keyword-match exemptions — a permanent fact should not be expiring
baseline debt. Upstream rule fix is a candidate for hypatia itself.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 1ff3bf5 commit 8636e15
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
0 commit comments