-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-new-language-featuretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug
Description
This issue tracks support of the constructor tearoffs feature. See the enclosing meta-issue for details.
Rules that need investigation, tests, and possible updating
-
always_specify_types(e.g. catchList<List>;,List<List>.filled;,) (constructor tear-off tests dart-archive/linter#2908)someFuture.then<List> -
avoid_redundant_argument_values(Improve the save operation of DartEditor #2895) -
prefer_const_constructors -
unnecessary_const(Spec: an obsolete example program #2903) - update
prefer_const_declarationsfor constructor tear-offs #58498 - add tear-off doc to
prefer_constructors_over_static_methods#58496 - update
sort_unnamed_constructors_firstfor constructor tear-offs #58499 - update
unnecessary_lambdasfor constructor tear-offs #58497 -
unnecessary_new(HttpRequest.queryParameters does not decode parameters including multi-byte characters #2902) - update
unnecessary_parenthesisfor constructor tear-offs #58495 -
unnecessary_statements(unnecessary_statementstests for constructor tear-offs dart-archive/linter#2901)
Server updates
- add a quick fix for
unnecessary_constructor_name(constructor tear-offs) #47102 - ensure fix for
unnecessary_lambdashandles constructor tear-off cases #47103
New lints
- lint to discourage
.newconstructor declarations? #58494 (and effective dart: advice on unnamed vs. constructor tear-offnewconstructors? site-www#3525)
Related issues / Future work
pq
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.linter-new-language-featuretype-enhancementA request for a change that isn't a bugA request for a change that isn't a bug