JetBrains / JetBrains/resharper-unity

False positive redundant SerializeField attribute warning

Open
#1,650 1 comment 2 reactions 1 assignee Claimed by @citizenmatt View on GitHub
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

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.