Skip to content

Specify the type of decl to rename in AlwaysUseLowerCamelCase. #222

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

Merged
merged 1 commit into from
Aug 18, 2020

Conversation

dylansturg
Copy link
Contributor

Previously, the diagnostic message said "rename variable..." regardless of the actual type of decl. I have added "function", "enum case", "constant", and "identifier" to the list of supported options. This approach is easily scalable to naming other types of decls as well.

I believe this makes the diagnostics more clear and specific, because it was confusing to see a diagnostic that says "rename variable..." that refers to a function's name.

Previously, the diagnostic message said "rename *variable*..." regardless of the actual type of decl. I have added "function", "enum case", "constant", and "identifier" to the list of supported options. This approach is easily scalable to naming other types of decls as well.

I believe this makes the diagnostics more clear and specific, because it was confusing to see a diagnostic that says "rename variable..." that refers to a function's name.
@allevato allevato merged commit 46e6088 into swiftlang:master Aug 18, 2020
allevato added a commit to allevato/swift-format that referenced this pull request Sep 17, 2020
Specify the type of decl to rename in AlwaysUseLowerCamelCase.
allevato added a commit that referenced this pull request Sep 17, 2020
Specify the type of decl to rename in AlwaysUseLowerCamelCase.
@dylansturg dylansturg deleted the accurate_decltypes branch May 4, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants