StyleCop
Static program analysis software
title: "StyleCop" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: [".net-programming-tools", "formerly-proprietary-software", "free-software-programmed-in-c-sharp", "microsoft-development-tools", "microsoft-free-software", "software-using-the-microsoft-public-license", "static-program-analysis-tools", "microsoft-visual-studio-extensions", "windows-only-free-software"] description: "Static program analysis software" topic_path: "technology/operating-systems" source: "https://en.wikipedia.org/wiki/StyleCop" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary Static program analysis software ::
::data[format=table title="Infobox software"]
| Field | Value |
|---|---|
| name | StyleCop |
| author | Microsoft |
| developer | Jason Allor, |
| Andy Reeves, | |
| Chris Dahlberg | |
| latest release version | 5.0.6329.1 |
| latest release date | |
| repo | |
| programming language | C# |
| operating system | Microsoft Windows |
| platform | .NET Framework |
| genre | Static code analysis tool |
| license | Microsoft Public Licence |
| website | |
| :: |
| name = StyleCop | author = Microsoft | developer = Jason Allor, Andy Reeves, Chris Dahlberg | latest release version = 5.0.6329.1 | latest release date = | repo = | programming language = C# | operating system = Microsoft Windows | platform = .NET Framework | genre = Static code analysis tool | license = Microsoft Public Licence | website = StyleCop is an open-source static code analysis tool from Microsoft that checks C# code for conformance to StyleCop's recommended coding styles and a subset of Microsoft's .NET Framework Design Guidelines. StyleCop analyses the source code, allowing it to enforce a different set of rules from FxCop (which, instead of source code, checks .NET managed code assemblies). The rules are classified into the following categories:
- Documentation
- Layout
- Maintainability
- Naming
- Ordering
- Readability
- Spacing
StyleCop includes both GUI and command-line versions of the tool. It is possible to add new rules to be applied.
StyleCop was originally developed by Jason Allor as a Microsoft internal tool, and was released externally as an open-source project in April 2010 on CodePlex.
StyleCop 4.7.55 (November 10, 2016) is compatible with Visual Studio 2008, 2010, 2012, 2013, and 2015. (Microsoft Visual Studio Extension)
StyleCop began a move to GitHub in December 2014, and the last change applied to the CodePlex edition was November 11, 2016.
StyleCop 5.0.6329.1 (April 30, 2017) works with Visual Studio 2012, 2013, 2015, and 2017. (Windows Installer)
Development is stopping. A named successor is StyleCopAnalyzers, for Visual Studio 2015 and later.
References
References
- (25 May 2008). "A Brief History Of C# Style".
- Patton, Tony. (June 24, 2011). "Maintain code consistency with Microsoft StyleCop". TechRepublic.
- Chinery, Clive. (July 30, 2009). "8 More Useful Tools for ASP.NET". Server-Side Magazine.
- https://stylecop.codeplex.com/ StyleCop (old CodePlex site)
- https://api.github.com/repos/StyleCop/StyleCop GitHub API response for StyleCop repository
- https://web.archive.org/web/20171226050423/http://stylecop.codeplex.com/SourceControl/list/changesets archive.org retrieval of StyleCop on CodePlex source history
- https://marketplace.visualstudio.com/items?itemName=ChrisDahlberg.StyleCop StyleCop - Visual Studio Marketplace
- https://github.com/StyleCop/StyleCop#considerations StyleCop repository on GitHub
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::