You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Product and Version Used:
vscode with C# dev kit | Unity project | roslynator as nuget package (latest to date) Steps to Reproduce:
add the following to .editorconfig
(note that Update did not get removed, showing that [RCS1213](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1213) is being diffused) Expected Behavior:
I think it has something to do with Unity not using Attribute with the SerializeField class name. I looked at the source codes for roslynator and saw that at
Do you have any idea why suffix Attribute is omitted in the name of this attribute?
I have no idea. Might be an old thing that remained in the engine for compatibility purpures, but then they change a lot of APIs in each major version, so I don't know why they don't change this as well (low priority?). But yeah, there's not official reason publicly available anywhere.
I checked and asked around, the attribute has always been just SerializeField. So it's safe to change the analyzer code to look only for UnityEngine.SerializeField
Product and Version Used:
vscode with C# dev kit | Unity project | roslynator as nuget package (latest to date)
Steps to Reproduce:
add the following to
.editorconfig
then write a script that a field with
[SerializeField]
attribute, likeActual Behavior:
(note that
Update
did not get removed, showing that[RCS1213](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1213)
is being diffused)Expected Behavior:
The text was updated successfully, but these errors were encountered: