Skip to content

Commit aa5f4a2

Browse files
authored
Enable no_wildcard_variable_uses lint (flutter#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!
1 parent 97fce9a commit aa5f4a2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ linter:
128128
- no_logic_in_create_state
129129
# - no_runtimeType_toString # ok in tests; we enable this only in packages/
130130
- no_self_assignments
131+
- no_wildcard_variable_uses
131132
- non_constant_identifier_names
132133
- noop_primitive_operations
133134
- null_check_on_nullable_type_parameter

0 commit comments

Comments
 (0)