mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Update AGENTS.md
This commit is contained in:
parent
59f3086841
commit
e946af060e
1 changed files with 2 additions and 0 deletions
|
|
@ -94,6 +94,8 @@ SnapRAID is designed to recover from an interruption, including `SIGKILL`, at an
|
|||
- **Preferences**: Use 0 instead of NULL and '\0'
|
||||
- **Preferences**: Use prefix ++variable and --variable instead of postfix variable++ and variable-- where both are equivalent
|
||||
- **Safety Checks**: Avoid adding safety checks for conditions that never happen
|
||||
- **Simplicity First**: Always choose the simplest design with the minimal number of state variables, branches, and lines of code.
|
||||
- **Stack Over Heap**: Prefer stack-allocated fixed-size buffers over dynamic memory allocation (`malloc`/`free`) whenever the upper bound is small, fixed, and known at compile time.
|
||||
- **Commit Messages**: Every time a change is done, a single line commit description should be provided for that change
|
||||
- **Git Commits**: Never commit changes to git.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue