[proposal] quick-fix for depend_on_referenced_packages
#48998
Labels
analyzer-quick-fix
area-analyzer
Use area-analyzer for Dart analyzer issues, including the analysis server and code completion.
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
Getting the best version constraint for an added package dependency is hard (see discussions in dart-lang/lints#42 and dart-lang/pub#3333). Without ruling out the possibility that we can do better, I'd like to explore a fix that does the simplest thing, adding a dependency on
package_name: any
with a#todo
comment to improve the constraint. (We might consider a separate tool to help, likely inpub
[1], but I think that's out of scope here.)Besides enabling a fix for
depend_on_referenced_packages
, such a fix will help complete the flow for data-driven fixes that require package additions (for example, #48997)./fyi @bwilkerson @keertip
/fyi @jonasfj
[1] Like "build cleaner"?
The text was updated successfully, but these errors were encountered: