.claude/commands/format-code.md
raw| 1 | --- |
| 2 | description: Format code according to project style (clang-format for C/C++) |
| 3 | --- |
| 4 | |
| 5 | Format code files according to Rspamd project style: |
| 6 | |
| 7 | 1. Identify modified C/C++ files in the current git working directory |
| 8 | 2. Run `clang-format -i` on those files using the `.clang-format` config |
| 9 | 3. Report what was formatted |
| 10 | 4. For Lua files, suggest running luacheck but don't auto-fix |
| 11 | |
| 12 | Make sure to use the `.clang-format` file in the project root. |