proposal: no_wildcard_variable_uses
#59157
Labels
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
devexp-linter
Issues with the analyzer's support for the linter package
linter-lint-proposal
linter-new-language-feature
P3
A lower priority bug or feature request
<no_wildcard_variable_uses>
Description
Do not use wildcard parameters or variables.
Details
There's a proposal to change the language so that (at least) parameters and local variables named
_
(e.g., wildcards) become non-binding. When that happens, existing code that uses wildcard parameters or variables will break.Enabling this lint now will make it less breaking to make
_
non-binding in a future Dart release.Kind
Error
Bad Examples
Good Examples
Discussion
#51221
cc @dart-lang/language-team
Discussion checklist
The text was updated successfully, but these errors were encountered: