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 refactorings and analyzers. Original project is available on CodePlex.
This project is available as a NuGet package and VSIX extension. Currently Roslyn does not support loading refactorings from NuGet packages so you need to install VSIX extension in order to get full functionality.
Latest VSIX and NuGet Packages
== operator to avoid typos like if (flag = true), also suggests using negated not pattern instead of != operator.CancellationToken are named ct.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
}