Skip to content

fix(analyzers): report RCS1046 for async void methods - #1790

Merged
josefpihrt merged 5 commits into
mainfrom
fix/analyzers/rcs1046-async-void
Aug 8, 2026
Merged

josefpihrt merged 5 commits into
mainfrom
fix/analyzers/rcs1046-async-void

Conversation

@josefpihrt

Copy link
Copy Markdown
Collaborator

Summary

  • RCS1046 now reports async void methods whose names do not end with Async
  • Added test covering async void Foo()

Fixes #1770

Test plan

  • dotnet test src/Tests/Analyzers.Tests/Analyzers.Tests.csproj --filter FullyQualifiedName~RCS1046AsynchronousMethodNameShouldEndWithAsyncTests

Made with Cursor

josefpihrt and others added 5 commits August 8, 2026 21:14
Async methods without the Async suffix were only reported when the
return type was awaitable, so async void methods were skipped.

Fixes #1770

Co-authored-by: Cursor <cursoragent@cursor.com>
@josefpihrt
josefpihrt merged commit 637c9c1 into main Aug 8, 2026
17 checks passed
@josefpihrt
josefpihrt deleted the fix/analyzers/rcs1046-async-void branch August 8, 2026 19:52
This was referenced Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RCS1046 is not reported for async void methods

1 participant