Implementation of StyleCop+ rules using the .NET Compiler Platform (Roslyn).
$ dotnet add package StyleCopPlusThis project is an implementation of StyleCop+ rules using the .NET Compiler Platform (Roslyn) as well as some additional opinionated refactorings and analyzers. Original project is available on CodePlex.
This project is available as a NuGet package. Visual Studio extension is no longer supported.
CancellationToken are named ct.== operator to avoid typos like if (flag = true), also suggests using negated not pattern instead of != operator.Analyzer line limits can be configured through StyleCop configuration file. Add the following snippet with configured values to the end of the file:
"styleCopPlusRules": {
"maxLineLength": 110,
"maxFileLength": 400,
"maxPropertyAccessorLength": 40,
"maxMethodLength": 50
}