Commit 604330cd4d
604330cd4d004249db1c02b785fbb8ba609cda62
parent: 03d877f237
Verified · cmc
cmc <hello@cleberg.net> · 2026-11-20 16:19 UTC
Remove the file size check
Layout: unified · split
docs/design.md
−1
| @@ -328,7 +328,6 @@ Fidelity is checked against Emacs itself, using the same oracle pattern as orgo' |
| 328 | - Encoding fixtures (BOM, CRLF, mixed endings, invalid UTF-8, non-BMP, combining characters) are public, in the repo. |
328 | - Encoding fixtures (BOM, CRLF, mixed endings, invalid UTF-8, non-BMP, combining characters) are public, in the repo. |
| 329 | - Save fault-injection tests replace the file on disk at each step of the save sequence. |
329 | - Save fault-injection tests replace the file on disk at each step of the save sequence. |
| 330 | - Personal org files are a second, private corpus run locally; phase gates use the public corpus. |
330 | - Personal org files are a second, private corpus run locally; phase gates use the public corpus. |
| 331 | - `scripts/check-file-sizes.sh` fails when a hand-written Swift file is over 1,000 lines; run it beside `swift test`. The generated `CharFold.swift` and `Queries.swift` are exempt. |
| |
| 332 | |
331 | |
| 333 | ## Phases |
332 | ## Phases |
| 334 | |
333 | |
docs/plans/2026-11-20-parity.md
−1
| @@ -10,7 +10,6 @@ Repo: /Users/cmc/git/krz/orgstar. Everything here comes from reading the code an |
| 10 | - Native wherever the oracle tests show it matches Emacs: LaTeX, ASCII, ODT, and Calc formulas (already native first). |
10 | - Native wherever the oracle tests show it matches Emacs: LaTeX, ASCII, ODT, and Calc formulas (already native first). |
| 11 | - The external program when it is installed and does more than the native code: Emacs for Lisp and tables the interpreter can't handle, node for JS, gnuplot for plots, latexmk for PDF through LaTeX. |
11 | - The external program when it is installed and does more than the native code: Emacs for Lisp and tables the interpreter can't handle, node for JS, gnuplot for plots, latexmk for PDF through LaTeX. |
| 12 | - The native path when that program is missing. This fixes the case where a Developer ID user without Emacs can run fewer Emacs Lisp blocks than an App Store user (`BabelRunner.swift:55-59`). |
12 | - The native path when that program is missing. This fixes the case where a Developer ID user without Emacs can run fewer Emacs Lisp blocks than an App Store user (`BabelRunner.swift:55-59`). |
| 13 | - **No file splits.** `check-file-sizes.sh` is ignored at your request. `Calc.swift` and `Elisp.swift` will grow past 1,000 lines. |
| |
| 14 | - **Every milestone below is one merge request** with its own tests and docs. |
13 | - **Every milestone below is one merge request** with its own tests and docs. |
| 15 | |
14 | |
| 16 | ## How to use the Emacs oracle tests |
15 | ## How to use the Emacs oracle tests |
scripts/check-file-sizes.sh
deleted
−12
| @@ -1,12 +0,0 @@ |
| 1 | #!/bin/sh |
| |
| 2 | # Lists hand-written Swift files over 1,000 lines and exits 1 when there are any. |
| |
| 3 | # Generated files (scripts/update-char-fold.sh, scripts/update-highlight-queries.sh) are exempt. |
| |
| 4 | # Usage: scripts/check-file-sizes.sh |
| |
| 5 | set -eu |
| |
| 6 | cd "$(dirname "$0")/.." |
| |
| 7 | limit=1000 |
| |
| 8 | over="$(find Sources -name '*.swift' \ |
| |
| 9 | ! -path 'Sources/OrgCore/Keymap/CharFold.swift' ! -path 'Sources/OrgHighlight/Queries.swift' \ |
| |
| 10 | -exec wc -l {} + | awk -v limit="$limit" '$2 != "total" && $1 > limit { printf "%6d %s\n", $1, $2 }')" |
| |
| 11 | [ -z "$over" ] || { echo "Swift files over $limit lines:"; echo "$over"; exit 1; } |
| |
| 12 | echo "No hand-written Swift file over $limit lines." |
| |