WHAT Coding Convention - ita-social-projects/WhatBackend GitHub Wiki
-
Line length must be not more than 80 symbols.
-
Correct English words in identifier names.
-
Method length must be not more than 65 lines.
-
Class field names should start with an underscore
-
Method names should start with a verb
-
Each function must perform a holistic action
-
Duplicating a statement condition in a code block by comment if code block more than 35 lines
-
Using directives should be in the alphabet order. Press
Ctrl + R + G
to change the order in the specific file. To check if you have the right settings, follow next steps: open Visual Studio -> Tools -> Options -> Search 'Text Editor' -> Find C# -> Advanced. In 'using directives' section, there are 3 points that should NOT have check marks:a) Place 'System' directives first when sorting usings
b) Separate using directive groups
c) Add missing using directives on paste