WHAT Coding Convention - ita-social-projects/WhatBackend GitHub Wiki

  1. Line length must be not more than 80 symbols.

  2. Correct English words in identifier names.

  3. Method length must be not more than 65 lines.

  4. Class field names should start with an underscore

  5. Method names should start with a verb

  6. Each function must perform a holistic action

  7. Duplicating a statement condition in a code block by comment if code block more than 35 lines

  8. 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