-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Names of anonymous libraries in 'Flutter' package are not stripped of 'package' prefix #3882
Comments
I just gave this another try in flutter/flutter#159445 with dartdoc 8.3.0 and I am running into the same problem: Generated URL: |
@srawlins Did you remove the library name from
[1] https://github.com/flutter/flutter/pull/159445/files#diff-4175a2d5dc31762727066811624f7d7c4a9127cba08df196fcb184bb4acc2833 |
I did not! 🤣 thanks for the tip 😁 |
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: