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

Run Naming Rules on parameters #16317

Merged
merged 1 commit into from
Jan 10, 2017

Conversation

dpoeschl
Copy link
Contributor

@dpoeschl dpoeschl commented Jan 7, 2017

Fixes #13249

Ask Mode

Customer scenario: Customers cannot create naming rules that target parameters.

Bugs this fixes: #13249

Workarounds, if any: None

Risk: Low. However, this utilizes a new feature of RegisterSymbolAction that allows it to work on parameters (#13931), and this new feature has not been used much to this point.

Performance impact: Low, but non-zero. The naming style analyzer will now process more symbols (all parameters), and processing a symbol does require some allocations, though @CyrusNajmabadi did a pass to decrease the number of allocations per analyzed symbol in #15972.

Is this a regression from a previous update?: No

Root cause analysis: RegisterSymbolAction did not support parameters until #13931, so we could not support parameters when this feature was first checked in.

How was the bug found? It was just a known missing piece of Naming Styles. Not reported by anyone as far as I can tell.

@dpoeschl
Copy link
Contributor Author

dpoeschl commented Jan 9, 2017

Tagging for review @dotnet/roslyn-ide @jmarolf

@Pilchie Pilchie added this to the 2.0 (RC.3) milestone Jan 9, 2017
@dpoeschl
Copy link
Contributor Author

@jmarolf said he pulled the changes down and did some testing locally as well.

@dpoeschl dpoeschl changed the base branch from master to dev15-rc3 January 10, 2017 02:11
@dpoeschl dpoeschl changed the base branch from dev15-rc3 to master January 10, 2017 02:11
@dpoeschl dpoeschl changed the base branch from master to dev15-rc3 January 10, 2017 02:12
@dpoeschl
Copy link
Contributor Author

Tagging @MattGertz for RC.3 Escrow consideration.

@Pilchie
Copy link
Member

Pilchie commented Jan 10, 2017

This was rejected for RC.3, but approved for RTW. Can you retarget to master?

@dpoeschl dpoeschl changed the base branch from dev15-rc3 to master January 10, 2017 22:53
@dpoeschl
Copy link
Contributor Author

@Pilchie retargeted to master. Can I merge?

@Pilchie
Copy link
Member

Pilchie commented Jan 10, 2017

Yes. Please do.

@dpoeschl dpoeschl merged commit 56eafac into dotnet:master Jan 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Naming Rules should apply to more symbol kinds (locals, parameters)
5 participants