-
Notifications
You must be signed in to change notification settings - Fork 22
Custom CSharp Language Service
StyleCop uses a custom C# language service to create a code model representing the original C# code. Custom StyleCop rules analyzers must interact with this custom language service to perform style analysis checks against the C# code.
At some point in the future, this custom language service will likely be replaced by an official C# language service coming in a future version of Visual Studio. When this change occurs, any existing custom rules analyzers written for StyleCop will need to be updated to reflect changes in the code model interface.
It is important to note the distinction between the custom C# language service used in StyleCop, and the official C# language service that may be included in a future version of Visual Studio. It is not possible to create a dependency on StyleCop's custom C# language service for use outside of the StyleCop tool. Companies needing C# language service support should look to the official Visual Studio C# language service provider.
- - SA0102 - Clean Install
- - Download
- - Documentation Rules - Layout Rules - Maintainability Rules - Naming Rules - Ordering Rules - Readability Rules - Spacing Rules - Suppressions
- - Adding a custom StyleCop settings page - Adding custom rule settings - Authoring a custom styleCop rule - Authoring rules metadata - Custom CSharp Language Service - Custom MSBuild Integration - Hosting StyleCop in a Custom Environment - Installing a Custom Rule - Integrating StyleCop Into Build Environments - Integrating StyleCop into MSBuild - Writing Custom Rules for StyleCop