StyleCop alternatives and similar packages
Based on the "Code Analysis and Metrics" category.
Alternatively, view StyleCop alternatives based on common mentions on social networks and blogs.
-
App.Metrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application. -
CodeMaid
CodeMaid is an open source Visual Studio extension to cleanup and simplify our C#, C++, F#, VB, PHP, PowerShell, JSON, XAML, XML, ASP, HTML, CSS, LESS, SCSS, JavaScript and TypeScript coding. -
.NET Compiler Platform ("Roslyn") Analyzers
A number of Roslyn diagnostic analyzers initially developed to help flesh out the design and implementation of the static analysis APIs. -
Metrics-Net
The Metrics.NET library provides a way of instrumenting applications with custom metrics (timers, histograms, counters etc) that can be reported in various ways and can provide insights on what is happening inside a running application. -
Beat Pulse
Liveness, health check library for ASP.NET Core Applications -
NsDepCop
NsDepCop is a static code analysis tool that helps to enforce namespace dependency rules in C# projects. No more unplanned or unnoticed dependencies in your system. -
Gendarme
Gendarme is a extensible rule-based tool to find problems in .NET applications and libraries. Gendarme inspects programs and libraries that contain code in ECMA CIL format (Mono and .NET) and looks for common problems with the code, problems that compiler do not typically check or have not historically checked. -
CsharpMacros
A simple template base system of macros for C# that can be executed in design time -
AspNet.Metrics
No longer maintained, instead see - https://github.com/alhardy/AppMetrics/ -
PVS-Studio
PVS-Studio is a static analyzer on guard of code quality, security (SAST), and code safety. [Free for OSS] [$] -
Codinion
Enhanced syntax highlighting for C# and some other "Visual" features. -
NDepend
is a Visual Studio and VS Team Services extension that estimates your .NET code quality and Technical-Debt, that lets create code rules with C# LINQ syntax, visualize code structure and focus on changes and evolution.[$] -
Bencher
Suite of continuous benchmarking tools designed to catch performance regressions in CI.
Clean code begins in your IDE with SonarLint
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of StyleCop or a related project?
README
StyleCop "Classic"
NOTE: This project is no longer very active. See the "Considerations" section below.
StyleCop analyzes C# source code to enforce a set of style and consistency rules. It is available in two primary forms:
- The StyleCop Visual Studio extension, which allows StyleCop analysis to be run on any file, project, or solution in Visual Studio without modifying the source code. Visual Studio 2010, 2012, 2013, 2015, 2017, and 2019 are supported by this extension.
- The StyleCop.MSBuild NuGet package, which allows StyleCop analysis to be added to any .NET 4.0+ project without installing anything else on the system.
There is also a ReSharper plugin that can be added using ReSharper's Extension Manager.
Considerations
While pull requests will continue to be accepted, it is unlikely that any major development (including support for newer C# syntax) will be done on this project. It is increasingly difficult and inefficient to maintain the custom C# parser used by StyleCop. The primary motivation for recent maintenance work was to allow developers who were already using StyleCop to upgrade to Visual Studio 2015 and C# 6.