.claude/commands/test-lua.md
raw| 1 | --- |
| 2 | description: Test Lua code changes with luacheck and functional tests |
| 3 | --- |
| 4 | |
| 5 | Test Lua code changes in Rspamd: |
| 6 | |
| 7 | 1. Run `luacheck src/plugins/lua/ lualib/ rules/` from project root |
| 8 | 2. Report any issues found |
| 9 | 3. If specific Lua files were modified, offer to run related functional tests |
| 10 | 4. Check if test files need to be updated for the changes |
| 11 | 5. Suggest creating new tests if adding new functionality |
| 12 | |
| 13 | Provide clear feedback on what needs to be fixed. |