@@ -156,3 +156,41 @@ csharp_space_between_method_call_empty_parameter_list_parentheses = false
156156# Wrapping preferences
157157csharp_preserve_single_line_statements = false
158158csharp_preserve_single_line_blocks = true
159+
160+
161+ # ##############################
162+ # Reliability Inspections #
163+ # ##############################
164+
165+ # CA2012: Use ValueTasks correctly
166+ dotnet_diagnostic.CA2012.severity = error
167+
168+ # VSTHRD002 Avoid problematic synchronous waits
169+ dotnet_diagnostic.VSTHRD002.severity = warning
170+
171+ # VSTHRD011 Use AsyncLazy<T>
172+ dotnet_diagnostic.VSTHRD011.severity = warning
173+
174+ # VSTHRD100 Avoid async void methods
175+ dotnet_diagnostic.VSTHRD100.severity = error
176+
177+ # VSTHRD101 Avoid unsupported async delegates
178+ dotnet_diagnostic.VSTHRD101.severity = error
179+
180+ # VSTHRD102 Implement internal logic asynchronously
181+ dotnet_diagnostic.VSTHRD102.severity = error
182+
183+ # VSTHRD103 Call async methods when in an async method
184+ dotnet_diagnostic.VSTHRD103.severity = error
185+
186+ # VSTHRD110 Observe result of async calls
187+ dotnet_diagnostic.VSTHRD110.severity = warning
188+
189+ # VSTHRD111 Use .ConfigureAwait(bool)
190+ dotnet_diagnostic.VSTHRD111.severity = error
191+
192+ # VSTHRD112 Implement System.IAsyncDisposable
193+ dotnet_diagnostic.VSTHRD112.severity = error
194+
195+ # VSTHRD200 Use Async suffix for async methods
196+ dotnet_diagnostic.VSTHRD200.severity = none
0 commit comments