Signed-off-by: James Cherry <[email protected]>
This commit is contained in:
James Cherry
2026-06-22 09:31:54 -07:00
parent 2349b76a95
commit 0939625580
+7
View File
@@ -34,6 +34,13 @@ alwaysApply: true
- Prefer `std::string` over `char*` for string members.
- Prefer pass-by-value and move for sink parameters (parameters that get stored).
## Control flow
- Prefer positive `if` conditions that wrap the main logic instead of early
`continue` or `return` to skip work.
- Example: use `if (!visited.contains(vertex)) { ... }` rather than
`if (visited.contains(vertex)) continue;`.
## File Extensions
- C++ source: `.cc`