Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an analyzer which recommends nameof usage #2991

Open
bradwilson opened this issue Aug 1, 2024 · 0 comments
Open

Add an analyzer which recommends nameof usage #2991

bradwilson opened this issue Aug 1, 2024 · 0 comments

Comments

@bradwilson
Copy link
Member

Whenever we use string properties on attributes intended to point at a member, we should encourage the use of nameof rather than hard-coded strings.

This includes, at least (please look and see if there are others):

  • IFactAttribute.SkipUnless
  • IFactAttribute.SkipWhen
  • MemberDataAttribute constructor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant