JetBrains / JetBrains/resharper-unity

Prevent rename of any string literal argument to [FormerlySerializedAs]

Open
#744 1 comment 1 reaction 1 assignee Claimed by @citizenmatt View on GitHub
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

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.