StyleCop 4.3 |
StyleCop 4.3 Rules |
Documentation Rules |
SA1600: ElementsMustBeDocumented |
SA1601: PartialElementsMustBeDocumented |
SA1602: EnumerationItemsMustBeDocumented |
SA1603: DocumentationMustContainValidXml |
SA1604: ElementDocumentationMustHaveSummary |
SA1605: PartialElementDocumentationMustHaveSummary |
SA1606: ElementDocumentationMustHaveSummaryText |
SA1607: PartialElementDocumentationMustHaveSummaryText |
SA1608: ElementDocumentationMustNotHaveDefaultSummary |
SA1609: PropertyDocumentationMustHaveValue |
SA1610: PropertyDocumentationMustHaveValueText |
SA1611: ElementParametersMustBeDocumented |
SA1612: ElementParameterDocumentationMustMatchElementParameters |
SA1613: ElementParameterDocumentationMustDeclareParameterName |
SA1614: ElementParameterDocumentationMustHaveText |
SA1615: ElementReturnValueMustBeDocumented |
SA1616: ElementReturnValueDocumentationMustHaveText |
SA1617: VoidReturnValueMustNotBeDocumented |
SA1618: GenericTypeParametersMustBeDocumented |
SA1619: GenericTypeParametersMustBeDocumentedPartialClass |
SA1620: GenericTypeParameterDocumentationMustMatchTypeParameters |
SA1621: GenericTypeParameterDocumentationMustDeclareParameterName |
SA1622: GenericTypeParameterDocumentationMustHaveText |
SA1623: PropertySummaryDocumentationMustMatchAccessors |
SA1624: PropertySummaryDocumentationMustOmitSetAccessorWithRestrictedAccess |
SA1625: ElementDocumentationMustNotBeCopiedAndPasted |
SA1626: SingleLineCommentsMustNotUseDocumentationStyleSlashes |
SA1627: DocumentationTextMustNotBeEmpty |
SA1628: DocumentationTextMustBeginWithACapitalLetter |
SA1629: DocumentationTextMustEndWithAPeriod |
SA1630: DocumentationTextMustContainWhitespace |
SA1631: DocumentationTextMustMeetCharacterPercentage |
SA1632: DocumentationTextMustMeetMinimumCharacterLength |
SA1633: FileMustHaveHeader |
SA1634: FileHeaderMustShowCopyright |
SA1635: FileHeaderMustHaveCopyrightText |
SA1636: FileHeaderCopyrightTextMustMatch |
SA1637: FileHeaderMustContainFileName |
SA1638: FileHeaderFileNameDocumentationMustMatchFileName |
SA1639: FileHeaderMustHaveSummary |
SA1640: FileHeaderMustHaveValidCompanyText |
SA1641: FileHeaderCompanyNameTextMustMatch |
SA1642: ConstructorSummaryDocumentationMustBeginWithStandardText |
SA1643: DestructorSummaryDocumentationMustBeginWithStandardText |
SA1644: DocumentationHeadersMustNotContainBlankLines |
Layout Rules |
SA1500: CurlyBracketsForMultiLineStatementsMustNotShareLine |
SA1501: StatementMustNotBeOnASingleLine |
SA1502: ElementMustNotBeOnASingleLine |
SA1503: CurlyBracketsMustNotBeOmitted |
SA1504: AllAccessorsMustBeSingleLineOrMultiLine |
SA1505: OpeningCurlyBracketsMustNotBeFollowedByBlankLine |
SA1506: ElementDocumentationHeadersMustNotBeFollowedByBlankLine |
SA1507: CodeMustNotContainMultipleBlankLinesInARow |
SA1508: ClosingCurlyBracketsMustNotBePrecededByBlankLine |
SA1509: OpeningCurlyBracketsMustNotBePrecededByBlankLine |
SA1510: ChainedStatementBlocksMustNotBePrecededByBlankLine |
SA1511: WhileDoFooterMustNotBePrecededByBlankLine |
SA1512: SingleLineCommentsMustNotBeFollowedByBlankLine |
SA1513: ClosingCurlyBracketsMustNotBeFollowedByBlankLine |
SA1514: ElementDocumentationHeadersMustBePrecededByBlankLine |
SA1515: SingleLineCommentsMustBePrecededByBlankLine |
SA1516: ElementsMustBeSeparatedByBlankLine |
Maintainability Rules |
SA1119: StatementMustNotUseUnnecessaryParenthesis |
SA1400: AccessModifierMustBeDeclared |
SA1401: FieldsMustBePrivate |
SA1402: FileMayOnlyContainASingleClass |
SA1403: FileMayOnlyContainASingleNamespace |
SA1407: ArithmeticExpressionsMustDeclarePrecedence |
SA1404: CodeAnalysisSuppressionMustHaveJustification |
SA1405: DebugAssertMustProvideMessageText |
SA1406: DebugFailMustProvideMessageText |
SA1408: ConditionalExpressionsMustDeclarePrecedence |
SA1409: RemoveUnnecessaryCode |
SA1410: RemoveDelegateParenthesisWhenPossible |
Naming Rules |
SA1300: ElementMustBeginWithUpperCaseLetter |
SA1301: ElementMustBeginWithLowerCaseLetter |
SA1302: InterfaceNamesMustBeginWithI |
SA1303: ConstFieldNamesMustBeginWithUpperCaseLetter |
SA1304: NonPrivateReadonlyFieldsMustBeginWithUpperCaseLetter |
SA1305: FieldNamesMustNotUseHungarianNotation |
SA1306: FieldNamesMustBeginWithLowerCaseLetter |
SA1307: AccessibleFieldsMustBeginWithUpperCaseLetter |
SA1308: VariableNamesMustNotBePrefixed |
SA1309: FieldNamesMustNotBeginWithUnderscore |
SA1310: FieldNamesMustNotContainUnderscore |
Ordering Rules |
SA1200: UsingDirectivesMustBePlacedWithinNamespace |
SA1201: ElementsMustAppearInTheCorrect Order |
SA1202: ElementsMustBeOrderedByAccess |
SA1203: ConstantsMustAppearBeforeFields |
SA1204: StaticElementsMustAppearBeforeInstanceElements |
SA1206: DeclarationKeywordsMustFollowOrder |
SA1207: ProtectedMustComeBeforeInternal |
SA1208: SystemUsingDirectivesMustBePlacedBeforeOtherUsingDirectives |
SA1209: UsingAliasDirectivesMustBePlacedAfterOtherUsingDirectives |
SA1210: UsingDirectivesMustBeOrderedAlphabeticallyByNamespace |
SA1211: UsingAliasDirectivesMustBeOrderedAlphabeticallyByAliasName |
Readability Rules |
SA1100: DoNotPrefixCallsWithBaseUnlessLocalImplementationExists |
SA1101: PrefixLocalCallsWithThis |
SA1102: QueryClauseMustFollowPreviousClause |
SA1103: QueryClausesMustBeOnSeparateLinesOrAllOnOneLine |
SA1104: QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines |
SA1105: QueryClausesSpanningMultipleLinesMustBeginOnOwnLine |
SA1106: CodeMustNotContainEmptyStatements |
SA1107: CodeMustNotContainMultipleStatementsOnOneLine |
SA1108: BlockStatementsMustNotContainEmbeddedComments |
SA1109: BlockStatementsMustNotContainEmbeddedRegions |
SA1110: OpeningParenthesisMustBeOnDeclarationLine |
SA1111: ClosingParenthesisMustBeOnLineOfLastParameter |
SA1112: ClosingParenthesisMustBeOnLineOfOpeningParenthesis |
SA1113: CommaMustBeOnSameLineAsPreviousParameter |
SA1114: ParameterListMustFollowDeclaration |
SA1115: ParameterMustFollowComma |
SA1116: SplitParametersMustStartOnLineAfterDeclaration |
SA1117: ParametersMustBeOnSameLineOrSeparateLines |
SA1118: ParametersMustNotSpanMultipleLines |
SA1120: CommentsMustContainText |
SA1121: UseBuiltInTypeAlias |
SA1122: UseStringEmptyForEmptyStrings |
SA1123: DoNotPlaceRegionsWithinElements |
SA1124: DoNotUseRegions |
Spacing Rules |
SA1000: KeywordsMustBeSpacedCorrectly |
SA1001: CommasMustBeSpaceCorrectly |
SA1002: SemicolonsMustBeSpaceCorrectly |
SA1003: SymbolsMustBeSpaceCorrectly |
SA1004: DocumentationLinesMustBeginWithSingleSpace |
SA1005: SingleLineCommentsMustBeginWithSingleSpace |
SA1006: PreprocessorKeywordsMustNotBePrecededBySpace |
SA1007: OperatorKeywordMustBeFollowedBySpace |
SA1008: OpeningParenthesisMustBeSpacedCorrectly |
SA1009: ClosingParenthesisMustBeSpacedCorrectly |
SA1010: OpeningSquareBracketsMustBeSpacedCorrectly |
SA1011: ClosingSquareBracketsMustBeSpacedCorrectly |
SA1012: OpeningCurlyBracketsMustBeSpacedCorrectly |
SA1013: ClosingCurlyBracketsMustBeSpacedCorrectly |
SA1014: OpeningGenericBracketsMustBeSpacedCorrectly |
SA1015: ClosingGenericBracketsMustBeSpacedCorrectly |
SA1016: OpeningAttributeBracketsMustBeSpacedCorrectly |
SA1017: ClosingAttributeBracketsMustBeSpacedCorrectly |
SA1018: NullableTypeSymbolsMustNotBePrecededBySpace |
SA1019: MemberAccessSymbolsMustBeSpacedCorrectly |
SA1020: IncrementDecrementSymbolsMustBeSpacedCorrectly |
SA1021: NegativeSignsMustBeSpacedCorrectly |
SA1022: PositiveSignsMustBeSpacedCorrectly |
SA1023: DereferenceAndAccessOfMustBeSpacedCorrectly |
SA1024: ColonsMustBeSpacedCorrectly |
SA1025: CodeMustNotContainMultipleWhitespaceInARow |
SA1026: CodeMustNotContainSpaceAfterNewKeywordInImplicitlyTypedArrayAllocation |
SA1027: TabsMustNotBeUsed |
© 2008 Martin Beeby