Skip to content

chore(qa): luacheck/stylua config + validate realtime event names#19

Open
Taure wants to merge 1 commit into
mainfrom
chore/lint-format-config
Open

chore(qa): luacheck/stylua config + validate realtime event names#19
Taure wants to merge 1 commit into
mainfrom
chore/lint-format-config

Conversation

@Taure
Copy link
Copy Markdown
Contributor

@Taure Taure commented May 2, 2026

Summary

  • Add .luacheckrc (Defold runtime globals + per-tree ignore rules) and .stylua.toml (tabs, 100-col, double quotes); apply stylua to all Lua source.
  • Validate event names in asobi.realtime:on against 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.
  • Add typo regression test in tests/test_dispatch.lua (rejects match_mached, accepts entity_added).
  • Sweep em dashes -> ASCII hyphens in changed prose.
  • Underscore unused args in Defold callback signatures (asobi/http.lua, asobi/realtime.lua).
  • Ignore .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

  • luacheck clean
  • stylua --check clean
  • dispatch unit tests pass
  • entity-sync unit tests pass
  • CI headless smoke against sdk_demo_backend (runs in GitHub Actions)

- 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.
@Taure Taure force-pushed the chore/lint-format-config branch from a0195df to 2141c55 Compare May 2, 2026 09:30
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