@@ -115,26 +115,23 @@ dotnet_diagnostic.RCS1214.severity = warning # Unnecessary interpolated string.
115115dotnet_diagnostic.RCS1225.severity = warning # Make class sealed.
116116dotnet_diagnostic.RCS1232.severity = warning # Order elements in documentation comment.
117117
118- # Commented out because `dotnet format` change can be disruptive.
119- # dotnet_diagnostic.RCS1085.severity = warning # Use auto-implemented property.
120-
121- # Commented out because `dotnet format` removes the xmldoc element, while we should add the missing documentation instead.
122- # dotnet_diagnostic.RCS1228.severity = warning # Unused element in documentation comment.
123-
124118# Diagnostics elevated as warnings
125119dotnet_diagnostic.CA1000.severity = warning # Do not declare static members on generic types
126120dotnet_diagnostic.CA1031.severity = warning # Do not catch general exception types
127121dotnet_diagnostic.CA1050.severity = warning # Declare types in namespaces
128122dotnet_diagnostic.CA1063.severity = warning # Implement IDisposable correctly
129123dotnet_diagnostic.CA1064.severity = warning # Exceptions should be public
124+ dotnet_diagnostic.CA1303.severity = warning # Do not pass literals as localized parameters
130125dotnet_diagnostic.CA1416.severity = warning # Validate platform compatibility
131126dotnet_diagnostic.CA1508.severity = warning # Avoid dead conditional code
127+ dotnet_diagnostic.CS1591.severity = warning # Missing XML comment for publicly visible type or member
132128dotnet_diagnostic.CA1852.severity = warning # Sealed classes
133129dotnet_diagnostic.CA1859.severity = warning # Use concrete types when possible for improved performance
134130dotnet_diagnostic.CA1860.severity = warning # Prefer comparing ' Count' to 0 rather than using ' Any()' , both for clarity and for performance
135131dotnet_diagnostic.CA2000.severity = warning # Call System.IDisposable.Dispose on object before all references to it are out of scope
136132dotnet_diagnostic.CA2007.severity = error # Do not directly await a Task
137133dotnet_diagnostic.CA2201.severity = warning # Exception type System.Exception is not sufficiently specific
134+ dotnet_diagnostic.CA2225.severity = warning # Operator overloads have named alternates
138135
139136dotnet_diagnostic.IDE0001.severity = warning # Simplify name
140137dotnet_diagnostic.IDE0005.severity = warning # Remove unnecessary using directives
@@ -158,37 +155,40 @@ dotnet_diagnostic.IDE0090.severity = warning # Simplify new expression
158155dotnet_diagnostic.IDE0130.severity = warning # Namespace does not match folder structure
159156dotnet_diagnostic.IDE0161.severity = warning # Use file-scoped namespace
160157
158+ dotnet_diagnostic.RCS1032.severity = warning # Remove redundant parentheses.
159+ dotnet_diagnostic.RCS1118.severity = warning # Mark local variable as const.
160+ dotnet_diagnostic.RCS1141.severity = warning # Add ' param' element to documentation comment.
161+ dotnet_diagnostic.RCS1197.severity = warning # Optimize StringBuilder.AppendLine call.
162+ dotnet_diagnostic.RCS1205.severity = warning # Order named arguments according to the order of parameters.
163+ dotnet_diagnostic.RCS1229.severity = warning # Use async/await when necessary.
164+
161165dotnet_diagnostic.VSTHRD111.severity = error # Use .ConfigureAwait(bool)
162166
163167# Suppressed diagnostics
168+
169+ # Commented out because `dotnet format` change can be disruptive.
170+ # dotnet_diagnostic.RCS1085.severity = warning # Use auto-implemented property.
171+
172+ # Commented out because `dotnet format` removes the xmldoc element, while we should add the missing documentation instead.
173+ # dotnet_diagnostic.RCS1228.severity = warning # Unused element in documentation comment.
174+
164175dotnet_diagnostic.CA1002.severity = none # Change ' List<string>' in ' ...' to use ' Collection<T>' ...
165176dotnet_diagnostic.CA1032.severity = none # We're using RCS1194 which seems to cover more ctors
166177dotnet_diagnostic.CA1034.severity = none # Do not nest type. Alternatively, change its accessibility so that it is not externally visible
167178dotnet_diagnostic.CA1062.severity = none # Disable null check, C # already does it for us
168- dotnet_diagnostic.CA1303.severity = warning # Do not pass literals as localized parameters
169- dotnet_diagnostic.CS1591.severity = warning # Missing XML comment for publicly visible type or member
170179dotnet_diagnostic.CA1805.severity = none # Member is explicitly initialized to its default value
171180dotnet_diagnostic.CA1822.severity = none # Member does not access instance data and can be marked as static
172181dotnet_diagnostic.CA1848.severity = none # For improved performance, use the LoggerMessage delegates
173- dotnet_diagnostic.CA2007.severity = warning # Do not directly await a Task
174- dotnet_diagnostic.CA2225.severity = warning # Operator overloads have named alternates
175182dotnet_diagnostic.CA2227.severity = none # Change to be read-only by removing the property setter
176183dotnet_diagnostic.CA2253.severity = none # Named placeholders in the logging message template should not be comprised of only numeric characters
177-
178- dotnet_diagnostic.VSTHRD111.severity = none # Use .ConfigureAwait(bool) is hidden by default, set to none to prevent IDE from changing on autosave
179- dotnet_diagnostic.xUnit1004.severity = none # Test methods should not be skipped. Remove the Skip property to start running the test again.
180-
181184dotnet_diagnostic.RCS1021.severity = none # Use expression-bodied lambda.
182- dotnet_diagnostic.RCS1032.severity = warning # Remove redundant parentheses.
183185dotnet_diagnostic.RCS1061.severity = none # Merge ' if' with nested ' if' .
184186dotnet_diagnostic.RCS1069.severity = none # Remove unnecessary case label.
185187dotnet_diagnostic.RCS1074.severity = none # Remove redundant constructor.
186188dotnet_diagnostic.RCS1077.severity = none # Optimize LINQ method call.
187- dotnet_diagnostic.RCS1118.severity = warning # Mark local variable as const.
188189dotnet_diagnostic.RCS1124.severity = none # Inline local variable.
189190dotnet_diagnostic.RCS1129.severity = none # Remove redundant field initialization.
190191dotnet_diagnostic.RCS1140.severity = none # Add exception to documentation comment.
191- dotnet_diagnostic.RCS1141.severity = warning # Add ' param' element to documentation comment.
192192dotnet_diagnostic.RCS1142.severity = none # Add ' typeparam' element to documentation comment.
193193dotnet_diagnostic.RCS1146.severity = none # Use conditional access.
194194dotnet_diagnostic.RCS1151.severity = none # Remove redundant cast.
@@ -201,18 +201,14 @@ dotnet_diagnostic.RCS1181.severity = none # Convert comment to documentation com
201201dotnet_diagnostic.RCS1186.severity = none # Use Regex instance instead of static method.
202202dotnet_diagnostic.RCS1188.severity = none # Remove redundant auto-property initialization.
203203dotnet_diagnostic.RCS1189.severity = none # Add region name to #endregion.
204- dotnet_diagnostic.RCS1197.severity = warning # Optimize StringBuilder.AppendLine call.
205204dotnet_diagnostic.RCS1201.severity = none # Use method chaining.
206- dotnet_diagnostic.RCS1205.severity = warning # Order named arguments according to the order of parameters.
207205dotnet_diagnostic.RCS1212.severity = none # Remove redundant assignment.
208206dotnet_diagnostic.RCS1217.severity = none # Convert interpolated string to concatenation.
209207dotnet_diagnostic.RCS1222.severity = none # Merge preprocessor directives.
210208dotnet_diagnostic.RCS1226.severity = none # Add paragraph to documentation comment.
211- dotnet_diagnostic.RCS1229.severity = warning # Use async/await when necessary.
212209dotnet_diagnostic.RCS1234.severity = none # Enum duplicate value
213210dotnet_diagnostic.RCS1238.severity = none # Avoid nested ?: operators.
214211dotnet_diagnostic.RCS1241.severity = none # Implement IComparable when implementing IComparable<T><T>.
215-
216212dotnet_diagnostic.IDE0001.severity = none # Simplify name
217213dotnet_diagnostic.IDE0002.severity = none # Simplify member access
218214dotnet_diagnostic.IDE0004.severity = none # Remove unnecessary cast
@@ -227,6 +223,8 @@ dotnet_diagnostic.IDE0100.severity = none # Remove unnecessary equality operator
227223dotnet_diagnostic.IDE0110.severity = none # Remove unnecessary discards
228224dotnet_diagnostic.IDE0032.severity = none # Use auto property
229225dotnet_diagnostic.IDE0160.severity = none # Use block-scoped namespace
226+ dotnet_diagnostic.VSTHRD111.severity = none # Use .ConfigureAwait(bool) is hidden by default, set to none to prevent IDE from changing on autosave
227+ dotnet_diagnostic.xUnit1004.severity = none # Test methods should not be skipped. Remove the Skip property to start running the test again.
230228
231229# ##############################
232230# Naming Conventions #
0 commit comments