Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
34da055
Add implementation and test library for avoid_unstable_final_fields
eernstg Jul 7, 2022
fdcdcf0
Add the new lint to all.yaml and rules.dart
eernstg Jul 7, 2022
76a1d3d
The lint is starting to take shape. Nothing yet tested.
eernstg Jul 12, 2022
1262661
WIP, checking whether we have to commit debug code in order to run it
eernstg Jul 12, 2022
5f86375
Now succeeds in running the test
eernstg Jul 12, 2022
9af541a
Now succeeds in running the test
eernstg Jul 13, 2022
792c8c5
Passing all tests, now using a ThrowingAstVisitor
eernstg Jul 13, 2022
055a61b
Passing all tests, now using a ThrowingAstVisitor
eernstg Jul 13, 2022
51d4858
Passing all tests, now using a ThrowingAstVisitor
eernstg Jul 13, 2022
6bc689b
WIP
eernstg Jul 13, 2022
462e374
WIP
eernstg Jul 13, 2022
af8ad59
Passing all tests again
eernstg Jul 13, 2022
71faffb
WIP
eernstg Jul 13, 2022
7e911fc
WIP
eernstg Jul 13, 2022
ddc6b43
Many small adjustments
eernstg Jul 15, 2022
48913ec
WIP
eernstg Jul 15, 2022
3d441a6
WIP
eernstg Jul 15, 2022
115bc54
Add support for @Object() to turn off stability
eernstg Jul 15, 2022
4760524
Added support for detecting expressions of type Never
eernstg Jul 15, 2022
48832fc
Add support for `e!`
eernstg Jul 19, 2022
62a56f7
Add support for `identical`
eernstg Jul 21, 2022
5977a7f
Review response
eernstg Aug 9, 2022
619602e
Migrated to use analyzer 4.4.0
eernstg Aug 10, 2022
efa89d8
Added test casess for enums and mixins
eernstg Aug 10, 2022
a3d61b0
Use new `declaredElement2`, `declaredElement` is deprecated
eernstg Aug 10, 2022
3bcaf8c
Update a few more `enclosingElement` to `enclosingElement2`
eernstg Aug 10, 2022
7fb7414
Correction: Now only expecting enclosing to be an `InterfaceElement` …
eernstg Aug 10, 2022
b260ec6
Correction: Now only expecting enclosing to be an `InterfaceElement` …
eernstg Aug 10, 2022
caae53f
Correction: Now only expecting enclosing to be an `InterfaceElement` …
eernstg Aug 10, 2022
3f39287
Fix more lints
eernstg Aug 10, 2022
e0a060e
Corrected treatment of type variables
eernstg Aug 10, 2022
f1de4cf
Ignore a lint about implementation imports: We need it.
eernstg Aug 10, 2022
5fea1b8
Changing doReportLint to accept an `AstNode`
eernstg Aug 11, 2022
b9933d8
Adjust lint reporting to use Token
eernstg Aug 11, 2022
f2a1621
Format
eernstg Aug 12, 2022
f9966a0
Update avoid_unstable_final_fields.dart to work with the current depe…
eernstg Sep 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ linter:
- avoid_types_as_parameter_names
- avoid_types_on_closure_parameters
- avoid_unnecessary_containers
- avoid_unstable_final_fields
- avoid_unused_constructor_parameters
- avoid_void_async
- avoid_web_libraries_in_flutter
Expand Down
2 changes: 2 additions & 0 deletions lib/src/rules.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ import 'rules/avoid_type_to_string.dart';
import 'rules/avoid_types_as_parameter_names.dart';
import 'rules/avoid_types_on_closure_parameters.dart';
import 'rules/avoid_unnecessary_containers.dart';
import 'rules/avoid_unstable_final_fields.dart';
import 'rules/avoid_unused_constructor_parameters.dart';
import 'rules/avoid_void_async.dart';
import 'rules/avoid_web_libraries_in_flutter.dart';
Expand Down Expand Up @@ -279,6 +280,7 @@ void registerLintRules({bool inTestMode = false}) {
..register(AvoidTypesAsParameterNames())
..register(AvoidTypesOnClosureParameters())
..register(AvoidUnnecessaryContainers())
..register(AvoidUnstableFinalFields())
..register(AvoidUnusedConstructorParameters())
..register(AvoidVoidAsync())
..register(AvoidWebLibrariesInFlutter())
Expand Down
Loading