[Wildcard Variables] consider a use_wildcards
lint
#59528
Labels
devexp-linter
Issues with the analyzer's support for the linter package
legacy-area-analyzer
Use area-devexp instead.
linter-lint-proposal
linter-new-language-feature
linter-set-core
linter-set-recommended
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Uh oh!
There was an error while loading. Please reload this page.
Not crazy about the name so other ideas welcome, but the idea is simply to introduce a lint that flags places where folks are using multiple underscores where they could be using a wildcard variable.
For example:
#59499 and #59491 propose changing existing lints to do this nudging but after some thinking and conversation, I'm no longer convinced that we want to do this in either. Some reasons:
no_leading_underscores_for_local_identifiers
nornon_constant_identifier_names
are enabled in Google3 for example)no_leading_underscores_for_local_identifiers
ornon_constant_identifier_names
isn't an option because of false positives./fyi @kallentu @bwilkerson
The text was updated successfully, but these errors were encountered: