-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[linter] Support for non-function type aliases #58347
Comments
I did a quick look through existing lints and besides the fix to @srawlins, @bwilkerson, @scheglov : curious if anything jumps out at you? As for new lints, I'm curious if there's any thinking about naming conventions. CamelCase? If yes, then thoughts on extending camel_case_types? Alternatively I guess we could add |
Doesn't As for other places that might need fixed up, you could search for places where |
Yes it does cover function type aliases. The question is whether it should flag the following: class A { }
typedef a = A; I think yes? (Currently it does not.) Thanks for the tip on |
Ah, that's because it's visiting |
FWIW, this means that the lint did not work for "modern" function type aliases as well, like |
Looking at
All seem straightforward. Thanks! |
Marking as done. If ideas for lints present themselves we can open new tracking issues. |
Follow-up from #44078 and #44951, we need to shore up linter support for non-function type aliases.
consider nonfunction type alias support inavoid_private_typedef_functions
avoid_private_typedef_functions
#58354camel_case_types
prefer_mixin
public_member_api_docs
slash_for_doc_comments
The text was updated successfully, but these errors were encountered: