-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathCode styling
31 lines (21 loc) · 1012 Bytes
/
Code styling
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Tabulators and spacing
======================
The tabulators will consist in a set of 4 spaces.
All the lines between braces should be tabulated.
The opening brace should be placed just after the sentence, except in the
case of functions or classes definition where the opening brace is placed in
the next line.
The lines must not exceed the 80 characters.
The private/protected variables of a class should be named with an underscore
prefix.
Naming
======
File names: File names will be inherited from the main class name inside them.
Type/ClassNameSpace names: Without underscores or dashes, the type names should
have upper case letters at the start of the name, and at the start of each word
of the name.
Function names: Without underscores or dashes, the type names should have a
lower case letter at the start of the name, and an upper case letter at the
start of each word of the name.
Variable names: Must be started with a lower case letter, and all the words
must be separated by underscores.