JetBrains / JetBrains/resharper-unity
Prevent rename of any string literal argument to [FormerlySerializedAs]
Open
bug
- Dominant language
- C#
- Stars
- 1.2k
- Forks
- 142
- PR merge metrics
- No merged PRs in 30d
Description
When renaming, Rider/ReSharper prompt to rename matching string literals. This is dangerous when renaming something that (accidentally) matches the contents of a `[FormerlySerializedAs]` attribute.
For example, renaming a method called `Fire` would prompt to rename the string literal in `[FormerlySerializedAs("Fire")]`. This is not a useful scenario, and could easily break a game.
This is related to, but separate from #743
Contributor guide
Assessment
This issue has not been assessed yet.