aboutsummaryrefslogtreecommitdiff
path: root/.ai/scripts/tests/lint-org-cli.bats
Commit message (Collapse)AuthorAgeFilesLines
* fix(scripts): stop org table helpers rewriting block contentCraig Jennings4 days1-0/+18
| | | | | | Both helpers treated any pipe-led line as a table row, so ASCII art in an example block got mangled into a bordered table (a work file took a 1949-line reformat on 2026-07-09). The scanners now track the open block's type and skip its content. Only the matching end marker closes a block, so a literal end_src quoted inside an example block can't re-expose it. The deeper cause was wrap-org-table's load-time dispatch: it fired when lint-org merely required the library, running the reformatter over files lint-org was only asked to report on. It now dispatches only when named as the entry script. lint-org's CLI is also report-only by default now. Writes require --fix, and the wrap-up workflow and lint command pass it.
* fix(scripts): lint-org resolves wrap-org-table from its own directoryCraig Jennings2026-06-111-0/+27
Consumers load lint-org with a bare -l and no load-path flag, so the new require of wrap-org-table failed everywhere outside make test's -L. lint-org now adds its own directory to load-path first. lint-org-cli.bats locks the bare-load contract for both scripts.