CityOfZion / neo-sharp

Neo-sharp is a new core and node implementation of NEO focused on modular design, best coding practices and testability.
MIT License
34 stars 24 forks source link

Include Code Analysis rules to the build environment #499

Closed aboimpinto closed 6 years ago

aboimpinto commented 6 years ago

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:

aboimpinto commented 6 years ago

add the CodeAnalysis and StyleCop described in productive code and not in the test code.

3869 warnings

aboimpinto commented 6 years ago

final number: 12.015 warning

shargon commented 6 years ago

Good job! i will close it because is merged