| 1 |
--- |
| 2 |
description: Run all code quality checks (luacheck, clang-format check) |
| 3 |
--- |
| 4 |
|
| 5 |
Run the following code quality checks for Rspamd project: |
| 6 |
|
| 7 |
1. For Lua files: Run `luacheck src/plugins/lua/ lualib/ rules/` from project root |
| 8 |
2. For C/C++ files: Check if clang-format would make changes (dry-run) |
| 9 |
3. Report any issues found |
| 10 |
4. Suggest fixes if there are problems |
| 11 |
|
| 12 |
# Remove AI code slop |
| 13 |
|
| 14 |
Check the diff against main, and remove all AI generated slop introduced in this branch. |
| 15 |
|
| 16 |
This includes: |
| 17 |
- Extra comments that a human wouldn't add or is inconsistent with the rest of the file |
| 18 |
- Extra defensive checks or try/catch blocks that are abnormal for that area of the codebase (especially if called by trusted / validated codepaths) |
| 19 |
- Casts to any to get around type issues |
| 20 |
- Any other style that is inconsistent with the file |
| 21 |
|
| 22 |
Report at the end with only a 1-3 sentence summary of what you changed |
| 23 |
|
| 24 |
Focus on files that have been modified in the current git working directory. |