We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Diagnostic ID: CA2012
Sometimes method other than the built in ones are valid consumptions.
Add editor config option similar to other analyzers
Public Async Function Test() As Task Await ValueTask.KeepContext() End Function Public Module AsyncExtensions <Extension> Public Function KeepContext(a As ValueTask) As ConfiguredValueTaskAwaitable Return a.ConfigureAwait(True) End Function <Extension> Public Function FreeContext(a As ValueTask) As ConfiguredValueTaskAwaitable Return a.ConfigureAwait(False) End Function End Module
dotnet_code_quality.additional_valid_valuetask_consumption=KeepContext|FreeContext
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Analyzer
Diagnostic ID: CA2012
Describe the improvement
Sometimes method other than the built in ones are valid consumptions.
Describe suggestions on how to achieve the rule
Add editor config option similar to other analyzers
Additional context
The text was updated successfully, but these errors were encountered: