Skip to content
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

Fix issue where excluded packages can sometimes default to remote linking #2387

Merged
merged 6 commits into from
Oct 13, 2020

Conversation

jcollins-g
Copy link
Contributor

@jcollins-g jcollins-g commented Oct 13, 2020

Fixes #2382 and #1431. In particular, any remaining workarounds for #1431 are now suboptimal and should be removed as, depending on how it is implemented, it may disable remote linking (if using --exclude-packages).

Dartdoc was only half paying attention to the exclude packages flag -- assuming that if you excluded the package you wanted remote linking if it happened to be part of Flutter. That doesn't work, particularly when you are documenting Flutter itself and leads to #2382.

Also, clean up isPublicAndPackageDocumented now that we don't have to infer documentation status for packages from libraries like we did in the dark ages (breaking change for removal of PackageGraph.packageDocumentedFor).

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Oct 13, 2020
@coveralls
Copy link

coveralls commented Oct 13, 2020

Coverage Status

Coverage decreased (-0.02%) to 92.048% when pulling b6bc825 on remote-linking-flutter-bug into 8f349b7 on master.

@jcollins-g jcollins-g marked this pull request as ready for review October 13, 2020 18:25
Copy link
Member

@srawlins srawlins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice refactor and fix.

@jcollins-g jcollins-g merged commit 0ad9830 into master Oct 13, 2020
@jcollins-g jcollins-g deleted the remote-linking-flutter-bug branch October 13, 2020 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error class in Flutter dartdocs reference classes that aren't in the documentation
3 participants