Skip to content

bar-fmt 2/3: workspace integration — check recipes, editor wiring, migrate::stylua-cleanup - #3

Closed
keithharvey wants to merge 4 commits into
bar-fmt-01-toolingfrom
bar-fmt-02-integration
Closed

bar-fmt 2/3: workspace integration — check recipes, editor wiring, migrate::stylua-cleanup#3
keithharvey wants to merge 4 commits into
bar-fmt-01-toolingfrom
bar-fmt-02-integration

Conversation

@keithharvey

@keithharvey keithharvey commented Jul 22, 2026

Copy link
Copy Markdown
Owner

Layer 2 of the bar-fmt stack, on top of #2.

Consumer-side workspace integration: bar::check / bar::check-errors (emmylua_check in bar-dev, exit code re-derived from the error count), the devtools .emmyrc.json, VS Code template wiring, lua::library doc-extraction updates, distrobox as a hard setup requirement, and the codemod recipes — bar::codemod-build / codemod-test plus the new bar::migrate:: namespace. Migrations are adoption-dated and listed in order (ORM-style); the 2026-07 stylua-cleanup entry is the idempotent 'transform your branch, then merge' replay the README callout documents. Entries retire to [private] ~6 months after adoption. Includes the bifurcated-types design doc that motivates the whole effort.

🤖 Generated with Claude Code

@keithharvey
keithharvey force-pushed the bar-fmt-02-integration branch from 426a585 to 4a9e6f2 Compare July 22, 2026 18:42
@keithharvey keithharvey changed the title bar-fmt 2/3: workspace integration — check recipes, editor wiring, fmt-mig replay bar-fmt 2/3: workspace integration — check recipes, editor wiring, migrate::stylua-cleanup Jul 22, 2026
@keithharvey
keithharvey marked this pull request as ready for review July 22, 2026 19:36
keithharvey and others added 4 commits July 22, 2026 19:33
bar::check / bar::check-errors run emmylua_check inside bar-dev against
BAR's .emmyrc.json; check-errors re-derives its exit code from the
error count so warnings don't fail CI. Adds the devtools .emmyrc.json,
points the VS Code template at the exported emmylua wrappers, extracts
Sim/Units/Scripts docs in lua::library, and makes distrobox a hard
setup requirement — the whole toolchain lives in the container.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
bar::codemod-build / codemod-test wrap codemod-cargo.sh. Migrations get
their own bar::migrate:: namespace — adoption-dated entries listed in
order, retired to [private] ~6 months after adoption. The 2026-07
stylua-cleanup entry replays the transform set (bracket-to-dot,
rename-aliases, detach-bar-modules) plus stylua onto the local BAR
checkout — the idempotent 'transform your branch, then merge' path the
README callout documents.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The codemod scanned everything stylua ignores: .lux and
recoil-lua-library tool dirs, and mapgenerator — whose
mapinfo_template.lua is a ${}-placeholder template, not valid Lua.
Old runs never hit it because a local skip-worktree bit kept the file
off disk; upstream touched the file, checkout rewrote the index entry,
the bit dropped, and the template resurfaced as a parse failure.
Explicit excludes replace the hidden state. No output change: the
baseline transform chain has zero conversions under mapgenerator.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@keithharvey

Copy link
Copy Markdown
Owner Author

Consolidating: bar-fmt reviews as one PR for now — the tip rollup at beyond-all-reason#57.

@keithharvey
keithharvey deleted the bar-fmt-02-integration branch July 31, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant