-
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_declarations
for constructor tear-offs #58498 - add tear-off doc to
prefer_constructors_over_static_methods
#58496 - update
sort_unnamed_constructors_first
for constructor tear-offs #58499 - update
unnecessary_lambdas
for constructor tear-offs #58497 -
unnecessary_new
(HttpRequest.queryParameters does not decode parameters including multi-byte characters #2902) - update
unnecessary_parenthesis
for constructor tear-offs #58495 -
unnecessary_statements
(unnecessary_statements
tests 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_lambdas
handles constructor tear-off cases #47103
New lints
- lint to discourage
.new
constructor declarations? #58494 (and effective dart: advice on unnamed vs. constructor tear-offnew
constructors? 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