- Always use curly braces for
if,else, loop, and other control-flow bodies in newly added code, including single-statement bodies. Do not refactor existing code solely to add braces. - Avoid nested ternary expressions. Prefer explicit conditionals or small helper functions so each branch is easy to follow.