DigitalExcellence / dex-backend

Backend for Digital Excellence Platform
https://dex.software
GNU Lesser General Public License v3.0
21 stars 10 forks source link

Define coding guidelines #52

Closed Brend-Smits closed 4 years ago

Brend-Smits commented 4 years ago

In GitLab by @Brend-Smits on Mar 27, 2020, 12:34

We need to define coding guidelines:

Related Epic: https://git.fhict.nl/dex/dex-epics/-/issues/14

Brend-Smits commented 4 years ago

In GitLab by @Brend-Smits on Mar 27, 2020, 12:34

changed due date to March 30, 2020

Brend-Smits commented 4 years ago

In GitLab by @jcoenen96 on Mar 27, 2020, 12:43

We can use the free ReSharper command line tools to add linting to our project.
https://www.jetbrains.com/resharper/features/command-line.html
Maybe we can even enforce our settings using the pipeline.

Brend-Smits commented 4 years ago

In GitLab by @jcoenen96 on Mar 27, 2020, 12:43

assigned to @jcoenen96

Brend-Smits commented 4 years ago

In GitLab by @jcoenen96 on Mar 27, 2020, 12:43

unassigned @jcoenen96

Brend-Smits commented 4 years ago

In GitLab by @jcoenen96 on Mar 27, 2020, 15:51

mentioned in merge request !11

Brend-Smits commented 4 years ago

In GitLab by @Brend-Smits on Mar 29, 2020, 20:19

changed the description

Brend-Smits commented 4 years ago

In GitLab by @Brend-Smits on Mar 30, 2020, 13:50

Follow the following convention. There are a few exceptions: https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/inside-a-program/coding-conventions
Comments:

Types:

Controller:

Single liners:

General rules:

Brend-Smits commented 4 years ago

In GitLab by @Brend-Smits on Mar 30, 2020, 13:50

closed

Brend-Smits commented 4 years ago

In GitLab by @Brend-Smits on Apr 15, 2020, 11:08

Private and Readonly fields should start with an underscore _