- Run all tests:
./run_tests.sh - Run a single test: Replace the directory in the above command with the test file path, e.g.:
./run_tests.sh -t tests/unit/test_example.lua
- Comments: Avoid obvious comments that merely restate what the code does. Only add comments when necessary to explain why something is done, not what is being done. Prefer self-explanatory code.
- Config: Centralize in
config.lua. Use deep merge for user overrides. - Types: Use Lua annotations (
---@class,---@field, etc.) for public APIs/config.
Use scripts/dependency-topology/scan_topology.py to inspect and track architectural layering.
- Use
python3 scripts/dependency-topology/scan_topology.py scanto inspect current-state vs target-policy gap - Use
diffto inspect change direction (improved/regressed/neutral) between snapshots - Pass
--snapshot <git-ref>for historical snapshots - Pass
--jsonwhen feeding outputs into scripts or agents - Keep architecture cleanup discussions anchored on scanner output instead of ad-hoc grep chains