Skip to content

Commit ff28cb6

Browse files
authored
[wildcard-variables] Add 'no_wildcard_variable_uses' lint to breaking change section. (#3785)
1 parent a1bf79d commit ff28cb6

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

working/wildcards/feature-specification.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Author: Bob Nystrom
44

55
Status: In-progress
66

7-
Version 1.1
7+
Version 1.2
88

99
Pattern matching brings a new way to declare variables. Inside patterns, any
1010
variable whose name is `_` is considered a "wildcard". It behaves like a
@@ -395,8 +395,18 @@ However, this *is* a breaking change. If this ships in the same version as
395395
pattern matching, we can gate it behind a language version and only break code
396396
when it upgrades to that version.
397397

398+
### Existing Lints
399+
400+
We have an existing [`no_wildcard_variable_uses`](https://dart.dev/tools/linter-rules/no_wildcard_variable_uses) lint, which advises users to avoid using wildcard parameters or variables.
401+
402+
This lint is included in the core lint set which means that the scale of the breaking change should be small since most projects should have this lint enabled.
403+
398404
## Changelog
399405

406+
### 1.2
407+
408+
- Add information about the [`no_wildcard_variable_uses`](https://dart.dev/tools/linter-rules/no_wildcard_variable_uses) lint.
409+
400410
### 1.1
401411

402412
- Add rules about `super._` and about extension types.

0 commit comments

Comments
 (0)