[Wildcard Variables] UNUSED_LOCAL_VARIABLE
support
#55719
Labels
analyzer-warning
Issues with the analyzer's Warning codes
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
feature-wildcard-variables
Implementation of the wildcard variables feature
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
As per the discussion in dart-lang/linter#4968, we want to start reporting
UNUSED_LOCAL_VARIABLE
for non wildcard underscore cases (e.g.,__
,___
, etc).UPDATE: non-wildcard underscores will produce diagnostics but whether we want to start reporting on other identifiers (e.g.,
e
orexception
) is still an open question. (See proposal below.)The text was updated successfully, but these errors were encountered: