-
Notifications
You must be signed in to change notification settings - Fork 278
StyleCop
Alexander Fast edited this page Aug 30, 2016
·
11 revisions
StyleCop analyzes C# source code to enforce a set of style and consistency rules. It has many benefits.
- It can be checked automatically. With any other style, you have to be a "human style cop" every time you review a pull request. This is boring.
- With any other style, there is always a gray area that's discussed endlessly. This is boring. A line according to StyleCop is either good or bad, nothing else.
- Rules that we find are too rigid can be turned off, it's not an all or nothing deal.
StyleCop appears to be included in Visual Studio 2015 Express by default. But in case you dont have it:
- In the menu bar click Tools and then Extensions and updates....
- Click Online.
- In the search box in the upper right type StyleCop.
- Select Visual StyleCop and click Download.
- In the menu bar click Tools (or MonoDevelop-Unity on MacOS) and then Add-in Manager.
- Click Gallery.
- In the search box in the upper right type StyleCop.
- Should be one hit, select it and click Install.
- In the menu bar click Tools.
- Click Run StyleCop (Ctrl+Shift+Y).
- Errors are presented as compiler warnings.
- Run like this it scans the entire project.
- You can also start it by right clicking a file in the solution explorer to run on just that file.
- In the menu bar click Tools.
- Click Run StyleCop.
- Errors are highlighted in your current file, if any.
- Errors are also presented as compiler warnings.
- Run like this it scans the entire project.
- You can also start it by right clicking a file tab to run on just that file.
- Features
-
Roadmap
- Milestone 0.3
- Milestone 0.2 (reached)
- Milestone 0.1 (reached)
- Gameplay
- Frequently Asked Questions