JetBrains / JetBrains/resharper-unity
:? cannot be applied to Unity objects.
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
Language Usage Opportunities, should be able to differentiate between unity objects and pure c# objects.
Currently all contexts where the following pattern exists will be flagged up by the code analyser.
However if the case is that Unity objects are included this should be suppressed.
Convert the following code:
if (condition) x = expr1;
else x = expr2;
To:
x = condition ? expr1 : expr2;
Contributor guide
Research direction
Start by locating the code analyzer that suggests converting if/else assignments into conditional expressions, then reproduce the report with Unity objects and pure C# objects. Done means the suggestion is suppressed for Unity objects while remaining available for pure C# objects.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, unity
- Domain
- game-dev, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100