Add a warning similar to UNUSED_IMPORT
for doc imports that are unused.
#55414
Labels
area-devexp
For issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.
devexp-warning
Issues with the analyzer's Warning codes
P3
A lower priority bug or feature request
type-enhancement
A request for a change that isn't a bug
Currently, you can add doc imports to any library whether or not it's used in any references.
It would be nice to have it report
UNUSED_IMPORT
orUNUSED_DOC_IMPORT
when the doc import isn't being used for any reference resolving so we can avoid unnecessary doc imports (and also see that it will actively be used).cc. @srawlins @goderbauer
The text was updated successfully, but these errors were encountered: