API and Bug Fix Update
Summary
- New diagnostics
- Bug fixes
- Performance improvements
- New contributors
๐ This is the final release which supports Visual Studio 2015 RC. Moving forward we will support only Visual Studio 2015 RTM.
Analyzers
The following analyzers are included in this release (all with Warning severity by default).
ID | Title | Code Fix |
---|---|---|
SA1000 | Keywords must be spaced correctly | โ |
SA1001 | Commas must be spaced correctly | โ |
SA1002 | Semicolons must be spaced correctly | โ |
SA1003 | Symbols must be spaced correctly | โ |
SA1004 | Documentation lines must begin with single space | |
SA1005 | Single line comments must begin with single space | โ |
SA1006 | Preprocessor keywords must not be preceded by space | โ |
SA1007 | Operator keyword must be followed by space | โ |
SA1008 | Opening parenthesis must be spaced correctly | โ |
SA1009 | Closing parenthesis must be spaced correctly | |
SA1010 | Opening square brackets must be spaced correctly | โ |
SA1016 | Opening attribute brackets must be spaced correctly | โ |
SA1017 | Closing attribute brackets must be spaced correctly | โ |
SA1018 | Nullable type symbols must be spaced correctly | โ |
SA1020 | Increment decrement symbols must be spaced correctly | |
SA1021 | Negative signs must be spaced correctly | โ |
SA1022 | Positive signs must be spaced correctly | โ |
SA1024 | Colons Must Be Spaced Correctly | โ |
SA1025 | Code must not contain multiple whitespace in a row | |
SA1026 | Code must not contain space after new keyword in implicitly typed array allocation | โ |
SA1027 | Tabs must not be used | โ |
SA1028 ยณ | Code must not contain trailing whitespace | โ |
SA1100 | Do not prefix calls with base unless local implementation exists | โ |
SA1101 | Prefix local calls with this | โ |
SA1102 | QueryClauseMustFollowPreviousClause | โ |
SA1103 | QueryClausesMustBeOnSeparateLinesOrAllOnOneLine | โ |
SA1104 | QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines | โ |
SA1105 | QueryClausesSpanningMultipleLinesMustBeginOnOwnLine | โ |
SA1106 | Code must not contain empty statements | |
SA1107 | Code must not contain multiple statements on one line | โ |
SA1108 | Block statements must not contain embedded comments | |
SA1110 | Opening parenthesis or bracket must be on declaration line | |
SA1111 | Closing parenthesis must be on line of last parameter | |
SA1112 | Closing parenthesis must be on line of opening parenthesis | |
SA1113 | Comma must be on the same line as previous parameter | |
SA1114 | Parameter list must follow declaration | |
SA1115 | Parameter must follow comma | |
SA1118 | Parameter must not span multiple lines | |
SA1119 | Statement must not use unnecessary parenthesis | โ |
SA1120 | Comments must contain text | |
SA1121 | Use built-in type alias | โ |
SA1122 | Use string.Empty for empty strings | โ |
SA1123 | Do not place regions within elements | โ |
SA1124 | Do not use regions | โ |
SA1125 | Use shorthand for nullable types | โยน |
SA1200 | Using directives must be placed within namespace | |
SA1201 | Elements must appear in the correct order | |
SA1205 | Partial elements must declare access | โ |
SA1206 | Declaration keywords must follow order | |
SA1208 | System using directives must be placed before other using directives | โยน |
SA1209 | Using alias directives must be placed after other using directives | โยน |
SA1210 | Using directives must be ordered alphabetically by namespace | โยน |
SA1211 | Using alias directives must be ordered alphabetically by alias name | โยน |
SA1212 | Property accessors must follow order | |
SA1213 | Event accessors must follow order | |
SA1214 | Static readonly elements must appear before static non-readonly elements | |
SA1216 ยณ | Using static directives must be placed after other using directives | โยน |
SA1217 ยณ | Using static directives must be ordered alphabetically | โยน |
SA1300 | Element must begin with upper-case letter | |
SA1301 | Element must begin with lower-case letter | |
SA1302 | Interface names must begin with I | โ |
SA1303 | Const field names must begin with upper-case letter | |
SA1304 | Non-private readonly fields must begin with upper-case letter | โ |
SA1306 | Field names must begin with lower-case letter | โ |
SA1307 | Accessible fields must begin with upper-case letter | โ |
SA1308 | Variable names must not be prefixed | โ |
SA1309 | Field names must not begin with underscore | โ |
SA1310 | Field names must not contain underscore | โ |
SA1311 | Static readonly fields must begin with upper-case letter | โ |
SX1309 ยฒ ยณ | Field names must begin with underscore | โ |
SX1309S ยฒ ยณ | Static field names must begin with underscore | โ |
SA1400 | Access modifier must be declared | โ |
SA1401 | Fields must be private | |
SA1402 | File may only contain a single class | โ |
SA1403 | File may only contain a single namespace | |
SA1404 | Code analysis suppression must have justification | |
SA1405 | Debug.Assert must provide message text | |
SA1406 | Debug.Fail must provide message text | |
SA1407 | Arithmetic expressions must declare precedence | โ |
SA1408 | Conditional expressions must declare precedence | โ |
SA1410 | Remove delegate parenthesis when possible | โ |
SA1411 | Attribute constructor must not use unnecessary parenthesis | โ |
SA1500 | Curly brackets for multi-line statements must not share line | โ |
SA1501 | Statement must not be on a single line | โ |
SA1502 | Element must not be on a single line | โ |
SA1503 | Curly brackets must not be omitted | โ |
SA1504 | All accessors must be single-line or multi-line | |
SA1505 | Opening curly brackets must not be followed by blank line | โ |
SA1506 | Element documentation headers must not be followed by blank line | โ |
SA1507 | Code must not contain multiple blank lines in a row | โ |
SA1508 | Closing curly brackets must not be preceded by blank line | โ |
SA1509 | Opening curly brackets must not be preceded by blank line | โ |
SA1510 | Chained statement blocks must not be preceded by blank line | โ |
SA1511 | While-do footer must not be preceded by blank line | โ |
SA1512 | Single-line comments must not be followed by blank line | โ |
SA1513 | Closing curly bracket must be followed by blank line | โ |
SA1514 | Element documentation header must be preceded by blank line | โ |
SA1515 | Single-line comment must be preceded by blank line | โ |
SA1516 | Elements must be separated by blank line | โ |
SA1517 | Code must not contain blank lines at start of file | โ |
SA1518 | Code must not contain blank lines at end of file | โ |
SA1519 ยณ | Curly brackets must not be omitted from multi-line child statement | โ |
SA1520 ยณ | Use curly brackets consistently | โ |
SA1600 | Elements must be documented | |
SA1601 | Partial elements must be documented | |
SA1602 | Enumeration items must be documented | |
SA1603 | Documentation must contain valid XML | |
SA1604 | Element documentation must have summary | |
SA1605 | Partial element documentation must have summary | |
SA1606 | Element documentation must have summary text | |
SA1607 | Partial element documentation must have summary text | |
SA1608 | Element documentation must not have default summary | |
SA1609 | Property documentation must have value | โ |
SA1610 | Property documentation must have value text | โ |
SA1611 | Element parameters must be documented | |
SA1612 | Element parameter documentation must match element parameters | |
SA1613 | Element parameter documentation must declare parameter name | |
SA1614 | Element parameter documentation must have text | |
SA1615 | Element return value must be documented | โ |
SA1616 | Element return value documentation must have text | |
SA1617 | Void return value must not be documented | โ |
SA1618 | Generic type parameters must be documented | |
SA1619 | Generic type parameters must be documented partial class | |
SA1620 | Generic type parameter documentation must match type parameters | |
SA1621 | Generic type parameter documentation must declare parameter name | |
SA1622 | Generic type parameter documentation must have text | |
SA1626 | Single-line comments must not use documentation style slashes | |
SA1633 | File must have header | |
SA1634 | File header must show copyright | |
SA1635 | File header must have copyright text | |
SA1637 | File header must contain file name | |
SA1638 | File header file name documentation must match file name | |
SA1639 | File header must have summary | |
SA1640 | File header must have valid company text | |
SA1642 | Constructor summary documentation must begin with standard text | โ |
SA1643 | Destructor summary documentation must begin with standard text | โ |
SA1651 ยณ | Do not use placeholder elements | โ |
Notes
ยน This code fix is provided by Visual Studio
ยฒ This "alternative" rule is not enabled by default
ยณ This rule is new for StyleCopAnalyzers, and isn't present in the original StyleCop
Acknowledgements
Thank you goes to all of the following users, who contributed feedback, bug reports, code submissions, testing, and reviews which helped in this release. In alphabetical order by username. This list does not include people who contacted us through other channels, but your feedback is no less valuable so we thank you as well.