CSE developers follow Microsoft's C# Coding Conventions and, where applicable, Microsoft's Secure Coding Guidelines.
CSE projects should check code style with the StyleCop Analyzers for the .NET Compiler Platform. The minimum rules set teams should adopt is the Managed Recommended Rules rule set.
Documentation on setting up code analysis for a project is provided here.
- Is framework version of code compatible with the target system
- Does this code make correct use of asynchronous programming constructs, including proper use of
await
andTask.WhenAll
? - Are the middlewares included in this project configured correctly?
- Does the code handle exceptions correctly?
- Do new unit tests or changes to unit tests in this code actually test the business logic they purport to test?
- Is package management being used (NuGet) instead of committing DLLs?
- Does the code in this project use log levels consistently?
- Does this code us LINQ appropriately? Pulling LINQ into a project to replace a single short loop or in ways that do not perform well are usually not appropriate.