JetBrains / JetBrains/resharper-unity

Add NotNull/CanBeNull annotations for known API methods

Open
#628 11 comments 6 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
1.2k
Forks
142
PR merge metrics
No merged PRs in 30d

Description

E.g. `GetComponent` will return `null` if the component isn't found. Adding `[CanBeNull]` will show warnings to check for `null` before use.

This will require trawling through the docs to see what is at least documented as returning `null`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.