Jump to content

StyleCop

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by AnomieBOT (talk | contribs) at 11:07, 20 April 2016 (Dating maintenance tags: {{Citation-needed}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

StyleCop
Original author(s)Microsoft
Developer(s)andyr
Stable release
4.7.49 / January 5, 2012; 13 years ago (2012-01-05)
Preview release
4.7.51 / March 13, 2016; 8 years ago (2016-03-13)
LicenseMicrosoft Public Licence
Websitehttps://stylecop.codeplex.com/

StyleCop is an open source static code analysis tool from Microsoft[citation needed] that checks C# code for conformance to StyleCop's recommended coding styles and a subset of Microsoft's .NET Framework Design Guidelines. StyleCop analyzes the source code, allowing it to enforce a different set of rules from FxCop (which, instead of source code, checks .NET managed code assemblies).[1][2] 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 create new rules to be used.

StyleCop was re-released as an open source project in April 2010 at http://stylecop.codeplex.com.

See also

References

  1. ^ Patton, Tony (June 24, 2011). "Maintain code consistency with Microsoft StyleCop". Blogs / Software Engineer. TechRepublic. Retrieved December 10, 2011.
  2. ^ Chinery, Clive (July 30, 2009). "8 More Useful Tools for ASP.NET". ASP .Net. Server-Side Magazine. Retrieved December 10, 2011.