chore(qa): luacheck/stylua config + validate realtime event names#19
Open
Taure wants to merge 1 commit into
Open
chore(qa): luacheck/stylua config + validate realtime event names#19Taure wants to merge 1 commit into
Taure wants to merge 1 commit into
Conversation
- Add .luacheckrc with Defold runtime globals and per-tree ignore rules - Add .stylua.toml (tabs, 100-col, double quotes) and apply to all Lua - Validate event names in asobi.realtime:on so callback typos raise at registration time instead of silently never firing - Add typo regression test in tests/test_dispatch.lua - Sweep em dashes -> ASCII hyphens in changed prose - Underscore unused args in Defold callback signatures (http.lua, realtime.lua) - Ignore .claude/ per-user state luacheck: 0/0 across 23 files. stylua --check: clean. 34/34 dispatch tests pass.
a0195df to
2141c55
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.luacheckrc(Defold runtime globals + per-tree ignore rules) and.stylua.toml(tabs, 100-col, double quotes); apply stylua to all Lua source.asobi.realtime:onagainst a known-events set so callback typos raise at registration time instead of silently never firing — protects users during the breaking per-instance API rollout.tests/test_dispatch.lua(rejectsmatch_mached, acceptsentity_added).asobi/http.lua,asobi/realtime.lua)..claude/per-user state.Verification
luacheck: 0 warnings / 0 errors across 23 files.stylua --check: clean.tests/test_dispatch.lua: 34 passed, 0 failed (32 fixtures + 2 KNOWN_EVENTS assertions).tests/test_entity_sync.lua: all entity-sync tests passed.Test plan
sdk_demo_backend(runs in GitHub Actions)