From aa5f4a28e9a8f121a2719c28d0c9a9c33dd798c4 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Fri, 30 Jun 2023 18:16:21 -0700 Subject: [PATCH] Enable no_wildcard_variable_uses lint (#129858) Wildcard parameters and local variables (e.g. underscore-only names like _, __, ___, etc.) will become non-binding in a future version of the Dart language. Any existing code that uses wildcard parameters or variables will break. In anticipation of this change, and to make adoption easier, this lint disallows wildcard and variable parameter uses. We had no violations of this in the framework. Let's keep it that way! --- analysis_options.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/analysis_options.yaml b/analysis_options.yaml index 3eecbcc0c1..c258678294 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -128,6 +128,7 @@ linter: - no_logic_in_create_state # - no_runtimeType_toString # ok in tests; we enable this only in packages/ - no_self_assignments + - no_wildcard_variable_uses - non_constant_identifier_names - noop_primitive_operations - null_check_on_nullable_type_parameter