Permalink
8409043 Oct 30, 2018
1 contributor

Users who have contributed to this file

213 lines (209 sloc) 22 KB

Roslynator Analyzers

Search Analyzers

Id Title Category Enabled by Default
RCS1001 Add braces (when expression spans over multiple lines) Style
RCS1002 Remove braces Style -
RCS1003 Add braces to if-else (when expression spans over multiple lines) Style
RCS1004 Remove braces from if-else Style -
RCS1005 Simplify nested using statement Simplification
RCS1006 Merge else clause with nested if statement Simplification
RCS1007 Add braces Style -
RCS1008 Use explicit type instead of 'var' (when the type is not obvious) Readability -
RCS1009 Use explicit type instead of 'var' (foreach variable) Readability -
RCS1010 Use 'var' instead of explicit type (when the type is obvious) Simplification -
RCS1012 Use explicit type instead of 'var' (when the type is obvious) Readability -
RCS1013 Use predefined type Usage -
RCS1014 Avoid implicitly-typed array Readability -
RCS1015 Use nameof operator Maintainability
RCS1016 Use expression-bodied member Usage -
RCS1017 Avoid multiline expression body Style -
RCS1018 Add default access modifier Readability
RCS1019 Reorder modifiers Readability -
RCS1020 Simplify Nullable<T> to T? Simplification
RCS1021 Simplify lambda expression Simplification
RCS1023 Format empty block Formatting -
RCS1024 Format accessor list Formatting -
RCS1025 Add new line before enum member Formatting -
RCS1026 Add new line before statement Formatting -
RCS1027 Add new line before embedded statement Formatting -
RCS1028 Add new line after switch label Formatting -
RCS1029 Format binary operator on next line Formatting
RCS1030 Add empty line after embedded statement Formatting -
RCS1032 Remove redundant parentheses Redundancy
RCS1033 Remove redundant boolean literal Redundancy
RCS1034 Remove redundant 'sealed' modifier Redundancy
RCS1035 Remove redundant comma in initializer Redundancy -
RCS1036 Remove redundant empty line Redundancy
RCS1037 Remove trailing white-space Redundancy
RCS1038 Remove empty statement Redundancy
RCS1039 Remove argument list from attribute Redundancy
RCS1040 Remove empty else clause Redundancy
RCS1041 Remove empty initializer Redundancy
RCS1042 Remove enum default underlying type Redundancy
RCS1043 Remove 'partial' modifier from type with a single part Redundancy
RCS1044 Remove original exception from throw statement Maintainability
RCS1045 Rename private field according to camel case with underscore Naming -
RCS1046 Asynchronous method name should end with 'Async' Naming -
RCS1047 Non-asynchronous method name should not end with 'Async' Naming
RCS1048 Use lambda expression instead of anonymous method Usage
RCS1049 Simplify boolean comparison Simplification
RCS1050 Add argument list to object creation expression Style -
RCS1051 Parenthesize condition in conditional expression Style -
RCS1052 Declare each attribute separately Readability -
RCS1055 Avoid semicolon at the end of declaration Redundancy
RCS1056 Avoid usage of using alias directive Readability -
RCS1057 Add empty line between declarations Formatting
RCS1058 Use compound assignment Simplification
RCS1059 Avoid locking on publicly accessible instance Design
RCS1060 Declare each type in separate file Maintainability -
RCS1061 Merge if statement with nested if statement Simplification
RCS1062 Avoid interpolated string with no interpolation Redundancy
RCS1063 Avoid usage of do statement to create an infinite loop Style
RCS1064 Avoid usage of for statement to create an infinite loop Style -
RCS1065 Avoid usage of while statement to create an inifinite loop Style -
RCS1066 Remove empty finally clause Redundancy
RCS1067 Remove argument list from object creation expression Style -
RCS1068 Simplify logical negation Simplification
RCS1069 Remove unnecessary case label Redundancy
RCS1070 Remove redundant default switch section Redundancy
RCS1071 Remove redundant base constructor call Redundancy
RCS1072 Remove empty namespace declaration Redundancy
RCS1073 Replace if statement with return statement Simplification
RCS1074 Remove redundant constructor Redundancy
RCS1075 Avoid empty catch clause that catches System.Exception Design
RCS1076 Format declaration braces Formatting
RCS1077 Optimize LINQ method call Performance
RCS1078 Use "" instead of string.Empty General -
RCS1079 Throwing of new NotImplementedException General
RCS1080 Use 'Count/Length' property instead of 'Any' method Performance
RCS1081 Split variable declaration Readability -
RCS1084 Use coalesce expression instead of conditional expression Simplification
RCS1085 Use auto-implemented property Simplification
RCS1086 Use linefeed as newline General -
RCS1087 Use carriage return + linefeed as newline General -
RCS1088 Use space(s) instead of tab General -
RCS1089 Use --/++ operator instead of assignment Simplification
RCS1090 Call 'ConfigureAwait(false)' Design
RCS1091 Remove empty region Redundancy
RCS1092 Add empty line before 'while' keyword in 'do' statement Formatting -
RCS1093 Remove file with no code Redundancy
RCS1094 Declare using directive on top level Readability -
RCS1096 Use bitwise operation instead of calling 'HasFlag' Performance
RCS1097 Remove redundant 'ToString' call Redundancy
RCS1098 Avoid 'null' on the left side of a binary expression Readability
RCS1099 Default label should be the last label in a switch section Readability
RCS1100 Format documentation summary on a single line Formatting -
RCS1101 Format documentation summary on multiple lines Formatting -
RCS1102 Make class static Design
RCS1103 Replace if statement with assignment Simplification
RCS1104 Simplify conditional expression Simplification
RCS1105 Unncessary interpolation Simplification
RCS1106 Remove empty destructor Redundancy
RCS1107 Remove redundant 'ToCharArray' call Redundancy
RCS1108 Add 'static' modifier to all partial class declarations Readability
RCS1110 Declare type inside namespace Design
RCS1111 Add braces to switch section with multiple statements Style -
RCS1112 Combine 'Enumerable.Where' method chain Simplification
RCS1113 Use 'string.IsNullOrEmpty' method Usage
RCS1114 Remove redundant delegate creation Redundancy
RCS1118 Mark local variable as const General
RCS1123 Add parentheses according to operator precedence Readability
RCS1124 Inline local variable Simplification
RCS1126 Add braces to if-else Style -
RCS1127 Merge local declaration with assignment Simplification
RCS1128 Use coalesce expression Simplification
RCS1129 Remove redundant field initalization Redundancy
RCS1130 Bitwise operation on enum without Flags attribute General
RCS1132 Remove redundant overriding member Redundancy
RCS1133 Remove redundant Dispose/Close call Redundancy
RCS1134 Remove redundant statement Redundancy
RCS1135 Declare enum member with zero value (when enum has FlagsAttribute) Design
RCS1136 Merge switch sections with equivalent content Simplification
RCS1138 Add summary to documentation comment Maintainability
RCS1139 Add summary element to documentation comment Maintainability
RCS1140 Add exception to documentation comment Maintainability
RCS1141 Add 'param' element to documentation comment Maintainability
RCS1142 Add 'typeparam' element to documentation comment Maintainability
RCS1143 Simplify coalesce expression Simplification
RCS1145 Remove redundant 'as' operator Redundancy
RCS1146 Use conditional access Usage
RCS1150 Call string.Concat instead of string.Join Simplification
RCS1151 Remove redundant cast Redundancy
RCS1153 Add empty line after closing brace Formatting -
RCS1154 Sort enum members Readability
RCS1155 Use StringComparison when comparing strings Usage
RCS1156 Use string.Length instead of comparison with empty string Usage
RCS1157 Composite enum value contains undefined flag Design
RCS1158 Static member in generic type should use a type parameter Design
RCS1159 Use EventHandler<T> Usage
RCS1160 Abstract type should not have public constructors Design
RCS1161 Enum member should declare explicit value Readability
RCS1162 Avoid chain of assignments Readability -
RCS1163 Unused parameter Redundancy
RCS1164 Unused type parameter Redundancy
RCS1165 Unconstrained type parameter checked for null Usage
RCS1166 Value type object is never equal to null Usage
RCS1168 Parameter name differs from base name Maintainability
RCS1169 Mark field as read-only Design
RCS1170 Use read-only auto-implemented property Design
RCS1171 Simplify lazy initialization Simplification
RCS1172 Use 'is' operator instead of 'as' operator Simplification
RCS1173 Use coalesce expression instead of if Simplification
RCS1174 Remove redundant async/await Redundancy -
RCS1175 Unused this parameter Redundancy
RCS1176 Use 'var' instead of explicit type (when the type is not obvious) Simplification -
RCS1177 Use 'var' instead of explicit type (in foreach) Simplification -
RCS1178 Call Debug.Fail instead of Debug.Assert Usage
RCS1179 Use return instead of assignment Simplification
RCS1180 Inline lazy initialization Simplification
RCS1181 Replace comment with documentation comment General
RCS1182 Remove redundant base interface Redundancy
RCS1183 Format initializer with single expression on single line Formatting
RCS1184 Format conditional expression (format ? and : on next line) Formatting -
RCS1185 Format single-line block Formatting -
RCS1186 Use Regex instance instead of static method Usage
RCS1187 Use constant instead of field Design
RCS1188 Remove redundant auto-property initialization Redundancy
RCS1189 Add or remove region name Readability
RCS1190 Join string expressions Simplification
RCS1191 Declare enum value as combination of names Readability
RCS1192 Use regular string literal instead of verbatim string literal Readability
RCS1193 Overriding member cannot change 'params' modifier Design
RCS1194 Implement exception constructors Design
RCS1195 Use ^ operator Simplification
RCS1196 Call extension method as instance method Style
RCS1197 Optimize StringBuilder.Append/AppendLine call Performance
RCS1198 Avoid unnecessary boxing of value type Performance -
RCS1199 Simplify boolean expression Simplification
RCS1200 Call 'Enumerable.ThenBy' instead of 'Enumerable.OrderBy' Usage
RCS1201 Use method chaining Simplification
RCS1202 Avoid NullReferenceException Usage
RCS1203 Use AttributeUsageAttribute Design
RCS1204 Use EventArgs.Empty Usage
RCS1205 Reorder named arguments according to the order of parameters Readability
RCS1206 Use conditional access instead of conditional expression Usage
RCS1207 Use method group instead of anonymous function Simplification
RCS1208 Reduce if nesting Style -
RCS1209 Reorder type parameter constraints Readability
RCS1210 Return Task.FromResult instead of returning null Usage
RCS1211 Remove unnecessary else clause Redundancy
RCS1212 Remove redundant assignment Redundancy
RCS1213 Remove unused member declaration Redundancy
RCS1214 Unnecessary interpolated string Simplification
RCS1215 Expression is always equal to true/false Redundancy
RCS1216 Unnecessary unsafe context Redundancy
RCS1217 Replace interpolated string with concatenation Readability
RCS1218 Simplify code branching Readability
RCS1219 Call 'Enumerable.Skip' and 'Enumerable.Any' instead of 'Enumerable.Count' Performance -
RCS1220 Use pattern matching instead of combination of 'is' operator and cast operator Usage
RCS1221 Use pattern matching instead of combination of 'as' operator and null check Usage
RCS1222 Merge preprocessor directives Readability
RCS1223 Mark publicly visible type with DebuggerDisplay attribute Usage -
RCS1224 Make method an extension method Design
RCS1225 Make class sealed Design
RCS1226 Add paragraph to documentation comment Usage
RCS1227 Validate arguments correctly Design
RCS1228 Unused element in documentation comment Readability
RCS1229 Use async/await when necessary Usage

(Generated with DotMarkdown)