microsoft / microsoft/Microsoft.Unity.Analyzers

Could you introduce these two analyzers about async method to unity analyser?

Open
#426 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C#
Stars
812
Forks
88
Avg merge
1d 6h
Merged PRs (30d)
11

Description

I found two useful analyzers in ErrorProne.NET/

Two in the red box can avoid careless mistakes that wanted to return the task types originally.
Two in the green box can prevent async void method from being misused.
Image

I think should support both UniTask and awaitable of Unity 6.0.
Thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the two analyzer categories shown in the linked ErrorProne.NET reference and compare them with the Microsoft.Unity.Analyzers project. Determine the required coverage for UniTask and Unity 6.0 awaitable methods, then define tests that demonstrate detection of careless task returns and misused async void methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, unity
Domain
devtools, game-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.