Skip to content

Latest commit

 

History

History
218 lines (214 loc) · 22 KB

README.md

File metadata and controls

218 lines (214 loc) · 22 KB

Roslynator Analyzers

Search Analyzers

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

(Generated with DotMarkdown)