Skip to content

Commit 8356cfe

Browse files
bwilkersonCommit Queue
authored and
Commit Queue
committed
Deprecate avoid_unstable_final_fields
Change-Id: I1d47dfcef9d910875833823aaf304f2945bb3254 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/340285 Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]>
1 parent fe2ea6a commit 8356cfe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/linter/example/all.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ linter:
4444
- avoid_types_as_parameter_names
4545
- avoid_types_on_closure_parameters
4646
- avoid_unnecessary_containers
47-
- avoid_unstable_final_fields
4847
- avoid_unused_constructor_parameters
4948
- avoid_void_async
5049
- avoid_web_libraries_in_flutter

pkg/linter/lib/src/rules/avoid_unstable_final_fields.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,8 @@ class AvoidUnstableFinalFields extends LintRule {
120120
name: 'avoid_unstable_final_fields',
121121
description: _desc,
122122
details: _details,
123-
group: Group.errors);
123+
group: Group.errors,
124+
state: State.deprecated());
124125

125126
@override
126127
void registerNodeProcessors(

0 commit comments

Comments
 (0)