The StyleCop tool provides warnings that indicate style and consistency rule violations in C# code. The warnings are organized into rule areas such as documentation, layout, naming, ordering, readability, spacing, and so forth. Each warning signifies a violation of a style or consistency rule. This section provides an explanation of each of the default StyleCop rules.
In This Section
Rules which verify the content and formatting of code documentation.
Rules which enforce code layout and line spacing.
Rules which improve code maintainability.
Rules which enforce naming requirements for members, types, and variables.
Rules which enforce a standard ordering scheme for code contents.
Rules which ensure that the code is well-formatted and readable.
Rules which enforce spacing requirements around keywords and symbols in the code.
It is possible to suppress the reporting of rule violations by adding suppression attributes within the source code.