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

Improve S2302 Message: Use NameOf for VB.NET #7197

Closed
PavlinII opened this issue May 10, 2023 · 1 comment · Fixed by #7199
Closed

Improve S2302 Message: Use NameOf for VB.NET #7197

PavlinII opened this issue May 10, 2023 · 1 comment · Fixed by #7199
Assignees
Labels
Area: VB.NET VB.NET rules related issues.
Milestone

Comments

@PavlinII
Copy link
Contributor

S2302 suggests

Replace the string 'ArgName' with 'nameof(ArgName)'.

Instead, it should suggest this for VB.NET

Replace the string 'ArgName' with 'NameOf(ArgName)'.

@cristian-ambrosini-sonarsource
Copy link
Contributor

Hi @PavlinII! Thanks for the suggestion: you should be able to see the new message starting from the next release.
Thanks again for your contribution!

@pavel-mikula-sonarsource pavel-mikula-sonarsource added this to the 9.1 milestone May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: VB.NET VB.NET rules related issues.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants