This repository contains an implementation of the StyleCop rules using the .NET Compiler Platform. Where possible, code fixes are also provided to simplify the process of correcting violations.
This repository has been created by cloning the StyleCopAnalyzers project and merging some of the pull requests that were created. It started as a temporary solution until maintenance of the original repository started working well again, but since that doesn't seem to happen I am now planning on maintaining it long-term.
The way to use the analyzers is to add the nuget package NewStyleCop.Analyzers to the project where you want to enforce StyleCop rules.
The severity of individual rules may be configured using rule set files. Settings.StyleCop is not supported, but a stylecop.json file may be used to customize the behavior of certain rules. See Configuration.md for more information.
For documentation and reasoning on the rules themselves, see the Documentation.
For users upgrading from StyleCop Classic, see KnownChanges.md for information about known differences which you may notice when switching to StyleCop Analyzers.
See Contributing