fix(rfc-025): add io to Principle 9 quality gate
io bypasses stream primitives. Core provides: - core.ReadAll(reader) — read all + close - core.WriteAll(writer, content) — write + close - core.CloseStream(v) — close any Closer 9 disallowed imports in the quality gate. Zero violations in core/go. Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
827739cb9f
commit
7e5fc0f93f
1 changed files with 1 additions and 0 deletions
|
|
@ -403,6 +403,7 @@ Core primitives become mechanical code review rules. An agent reviewing a diff c
|
|||
| `unsafe` | Bypasses Fs sandbox | `Fs.NewUnrestricted()` |
|
||||
| `encoding/json` | Bypasses Core serialisation | `core.JSONMarshal()` / `core.JSONUnmarshal()` |
|
||||
| `os` | Bypasses Fs/Env primitives | `c.Fs()`, `core.Env()`, `core.DirFS()` |
|
||||
| `io` | Bypasses stream primitives | `core.ReadAll()`, `core.WriteAll()`, `core.CloseStream()` |
|
||||
| `path/filepath` | Bypasses path security boundary | `core.Path()` / `core.JoinPath()` |
|
||||
| `fmt.Errorf` | Bypasses error primitive | `core.E()` |
|
||||
| `errors` | Bypasses error primitive | `core.NewError()` / `core.Is()` / `core.As()` |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue