mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-21 11:53:07 +09:00
Update UXP Coding Style.md
Be more explicit about paranthesis spacing
This commit is contained in:
parent
13853ba49e
commit
cd9e42e8e5
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ Our own managed and maintained code should adhere to this guide where possible o
|
|||
## General formatting rules
|
||||
The following formatting rules apply to all code:
|
||||
- Always use spaces for indentation, never use tabs!
|
||||
- Put a space between a keyword and parenthesis, e.g. `if (`.
|
||||
- Put a space between a keyword and parenthesis, e.g. `if (`. Do _not_ put a space between a function/type-assignment name and its parenthesis, e.g. `function(somevar)` or `int32_t(somevar)`.
|
||||
- Put a space between variables and operators, e.g. `a == b`.
|
||||
- Put a space after a comma or semicolon in variable lists, e.g. `function(a, b, c)` or `for (i = 1; i < 10; i++)`.
|
||||
- Indentation of scopes is 2 spaces.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue