In order to reduce the discussion about how the code should look like and to avoid arguments like: "I read prefer like this..:" or "Is more readable like this..." we should implement the Code Analysis rules to rule code style.
At the begin the non-conform pieces of code should appear as warning and after the team give effort to remove all the warnings, on every build the non-conform code should be be marked as error and we should not be able to compile the code.
There are nuget packages to add Code Analysis and Style Cop rules to the .NET Core Projects:
In order to reduce the discussion about how the code should look like and to avoid arguments like: "I read prefer like this..:" or "Is more readable like this..." we should implement the Code Analysis rules to rule code style.
At the begin the non-conform pieces of code should appear as warning and after the team give effort to remove all the warnings, on every build the non-conform code should be be marked as error and we should not be able to compile the code.
There are nuget packages to add Code Analysis and Style Cop rules to the .NET Core Projects: