docs: encourage adding comments; fix nested IF/ELSIF indentation
- Update AGENTS.md to encourage comments instead of forbidding them - Add docstrings to all public functions in src/ modules - Add module headers and function comments to lua/scl/ modules - Fix formatter to properly indent multi-line IF/ELSIF conditions - Fix FB call detection to not match IF statements with parentheses
This commit is contained in:
@@ -104,7 +104,7 @@ return M
|
||||
- No trailing whitespace
|
||||
|
||||
### Comments
|
||||
**DO NOT ADD COMMENTS** in code unless explicitly requested by the user.
|
||||
Add comments to explain non-obvious code sections, complex logic, and public API functions. Keep comments concise and relevant.
|
||||
|
||||
### Parser Module API
|
||||
All parser modules must implement:
|
||||
|
||||
Reference in New Issue
Block a user