Jump to content

StyleCop: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Updated location of project.
Cangaran (talk | contribs)
Added links
Tags: Mobile edit Mobile app edit
Line 7: Line 7:
| status = Active
| status = Active
| license = Microsoft Public Licence
| license = Microsoft Public Licence
| website = {{URL|stylecop.codeplex.com}}
| website = {{URL|github.com/StyleCop}}
}}
}}
'''StyleCop''' is an [[open source]] [[static code analysis]] tool from [[Microsoft]]<ref>{{Cite web|url=https://blogs.msdn.microsoft.com/sourceanalysis/2008/05/25/a-brief-history-of-c-style/|title=A Brief History Of C# Style|access-date=2016-07-19}}</ref> that checks [[C Sharp (programming language)|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 Framework|.NET]] [[managed code]] [[Assembly (CLI)|assemblies]]).<ref>{{cite web | url=http://www.techrepublic.com/blog/programming-and-development/maintain-code-consistency-with-microsoft-stylecop/4328 | title=Maintain code consistency with Microsoft StyleCop | publisher=TechRepublic | work=Blogs / Software Engineer | date=June 24, 2011 | accessdate=December 10, 2011 | author=Patton, Tony}}</ref><ref>{{cite web | url=http://www.serversidemagazine.com/asp-net/8-more-useful-tools-for-asp-net/ | title=8 More Useful Tools for ASP.NET | publisher=Server-Side Magazine | work=ASP .Net | date=July 30, 2009 | accessdate=December 10, 2011 | author=Chinery, Clive}}</ref> The rules are classified into the following categories:
'''StyleCop''' is an [[open source]] [[static code analysis]] tool from [[Microsoft]]<ref>{{Cite web|url=https://blogs.msdn.microsoft.com/sourceanalysis/2008/05/25/a-brief-history-of-c-style/|title=A Brief History Of C# Style|access-date=2016-07-19}}</ref> that checks [[C Sharp (programming language)|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 Framework|.NET]] [[managed code]] [[Assembly (CLI)|assemblies]]).<ref>{{cite web | url=http://www.techrepublic.com/blog/programming-and-development/maintain-code-consistency-with-microsoft-stylecop/4328 | title=Maintain code consistency with Microsoft StyleCop | publisher=TechRepublic | work=Blogs / Software Engineer | date=June 24, 2011 | accessdate=December 10, 2011 | author=Patton, Tony}}</ref><ref>{{cite web | url=http://www.serversidemagazine.com/asp-net/8-more-useful-tools-for-asp-net/ | title=8 More Useful Tools for ASP.NET | publisher=Server-Side Magazine | work=ASP .Net | date=July 30, 2009 | accessdate=December 10, 2011 | author=Chinery, Clive}}</ref> The rules are classified into the following categories:

Revision as of 11:36, 24 May 2017

StyleCop
Original author(s)Microsoft
Developer(s)andyr
Stable release
4.7.55 / November 10, 2016; 8 years ago (2016-11-10)
LicenseMicrosoft Public Licence
Websitegithub.com/StyleCop

StyleCop is an open source static code analysis tool from Microsoft[1] 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).[2][3] 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 on codeplex.com and has since moved to https://github.com/StyleCop .

See also

References

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