Skip to content
Christophe HEISER edited this page Nov 17, 2015 · 3 revisions
<title>Readability Rules</title> <script src="script/helpstudio.js" type="text/javascript"></script> <script src="script/StandardText.js" type="text/javascript"></script>
<script type="text/javascript">WritePageTop(document.title);</script>

Rules which ensure that the code is well-formatted and readable.

SA1100: DoNotPrefixCallsWithBaseUnlessLocalImplementationExists

SA1101: PrefixLocalCallsWithThis

SA1102: QueryClauseMustFollowPreviousClause

SA1103: QueryClausesMustBeOnSeparateLinesOrAllOnOneLine

SA1104: QueryClauseMustBeginOnNewLineWhenPreviousClauseSpansMultipleLines

SA1105: QueryClausesSpanningMultipleLinesMustBeginOnOwnLine

SA1106: CodeMustNotContainEmptyStatements

SA1107: CodeMustNotContainMultipleStatementsOnOneLine

SA1108: BlockStatementsMustNotContainEmbeddedComments

SA1109: BlockStatementsMustNotContainEmbeddedRegions

SA1110: OpeningParenthesisMustBeOnDeclarationLine

SA1111: ClosingParenthesisMustBeOnLineOfOpeningParenthesis

SA1112: ClosingParenthesisMustBeOnLineOfOpeningParenthesis

SA1113: CommaMustBeOnSameLineAsPreviousParameter

SA1114: ParameterListMustFollowDeclaration

SA1115: ParameterMustFollowComma

SA1116: SplitParametersMustStartOnLineAfterDeclaration

SA1117: ParametersMustBeOnSameLineOrSeparateLines

SA1118: ParameterMustNotSpanMultipleLines

SA1120: CommentsMustContainText

SA1121: UseBuiltInTypeAlias

SA1122: UseStringEmptyForEmptyStrings

SA1123: DoNotPlaceRegionsWithinElements

SA1124: DoNotUseRegions

SA1125: UseShorthandForNullableTypes

SA1126: PrefixCallsCorrectly

Clone this wiki locally