You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As @goderbauerfound earlier, when removing the name portion of a library directive, e.g. s/library widgets;/library; changes the URI of the generated docs for the widgets library.
It turns out this should have worked; there is code in Library.dirName that picks a "dir name" for an anonymous library. That code should strip the package prefix from libraries in the "default package." When generating docs for the Flutter SDK, the Flutter "package" is considered "default," but it's name is capitalized: "Flutter." Because of this, the stripping behavior does not work.
This issue prevents the flutter SDK from adopting the unnecessary_library_names lint rule.
The text was updated successfully, but these errors were encountered:
srawlins
added
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
P2
A bug or feature request we're likely to work on
labels
Sep 15, 2024
As @goderbauer found earlier, when removing the name portion of a library directive, e.g.
s/library widgets;/library;
changes the URI of the generated docs for the widgets library.It turns out this should have worked; there is code in
Library.dirName
that picks a "dir name" for an anonymous library. That code should strip the package prefix from libraries in the "default package." When generating docs for the Flutter SDK, the Flutter "package" is considered "default," but it's name is capitalized: "Flutter." Because of this, the stripping behavior does not work.This issue prevents the flutter SDK from adopting the
unnecessary_library_names
lint rule.The text was updated successfully, but these errors were encountered: