JetBrains / JetBrains/resharper-unity
False positive redundant SerializeField attribute warning
Open
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
With the change to make the "remove redundant attribute" fix a bulk fix that is also applied during code completion, any `[SerializeField]` usage on a non-serializable base class that has derived, serializable classes, should not be marked as redundant - code cleanup, or the bulk fix will incorrectly remove this attribute, and produce broken code.
This issue is already reported at [RIDER-18729](https://youtrack.jetbrains.com/issue/RIDER-18729), but also added here for visibility.
Contributor guide
Assessment
This issue has not been assessed yet.