Skip to content

Commit 175df74

Browse files
committed
Added 2 commonly-used standards
1 parent 29be4f9 commit 175df74

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

contributing/code/standards.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ Structure
8585

8686
* Add a single space around operators (``==``, ``&&``, ...);
8787

88+
* Add a comma after each array item in a multi-line array, even after the
89+
last one;
90+
8891
* Add a blank line before ``return`` statements, unless the return is alone
8992
inside a statement-group (like an ``if`` statement);
9093

@@ -99,6 +102,9 @@ Structure
99102

100103
* Declare public methods first, then protected ones and finally private ones.
101104

105+
* Use parentheses when instantiating classes regardless of the number of
106+
arguments the constructor has.
107+
102108
Naming Conventions
103109
------------------
104110

0 commit comments

Comments
 (0)