Skip to content

Don't emit AlwaysUseLowerCamelCase for decls that override #295

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
Apr 18, 2022

Conversation

dylansturg
Copy link
Contributor

Specifically this applies to function and variable decls. When one of those is overriding a decl in a super class, then this specific instance of the decl cannot be renamed to fix the issue. The original decl in the super class must be renamed. The finding is still raised if the super class is linted.

Raising the finding in every subclass is noisy and frustrating, since it can't really be fixed in the subclass.

… `override` modifier.

Specifically this applies to function and variable decls. When one of those is overriding a decl in a super class, then this specific instance of the decl cannot be renamed to fix the issue. The original decl in the super class must be renamed. The finding is still raised if the super class is linted.

Raising the finding in every subclass is noisy and frustrating, since it can't really be fixed in the subclass.
Copy link
Member

@allevato allevato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If only we could do this for protocol requirements, too (without semantic info).

@allevato allevato merged commit 7acb409 into swiftlang:main Apr 18, 2022
@dylansturg dylansturg deleted the silence_override_warnings branch May 4, 2022 23:17
allevato added a commit to allevato/swift-format that referenced this pull request Sep 13, 2022
…nings

Don't emit AlwaysUseLowerCamelCase for decls that `override`
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