-
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
Search index checker #1442
Search index checker #1442
Conversation
Drive by: how is this tested? |
This is a test. |
More specifically: this is an enhancement to dartdoc's self-checking, and so it didn't make much sense to me to spend a great deal of time testing outside of manual checks that the check works. Nevertheless, dartdoc in general needs improved testing and I have open issues on that. |
@@ -3092,6 +3097,8 @@ class Package implements Nameable, Documentable { | |||
break; | |||
case PackageWarning.brokenLink: | |||
warningMessage = 'dartdoc generated a broken link to: ${message}'; | |||
warnablePrefix = 'to element'; | |||
referredFromPrefix = 'linked to from'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linked to from
=> referenced from
?
lgtm Not as part of this PR, but you may want to make the location output a bit more terse. In ModelElement
to
or perhaps
|
Right, but it's a user-facing feature – which should have it's own tests. Just curious.. |
@kevmoo I'd be happy to discuss my testing philosophy with you offline, feel free to drop something on my calendar. |
re: shortening URLs, that should be a lot more possible since they're all generated from the same place now, just haven't gotten to it yet. |
Add a search index checker for #1434 and make some enhancements to warnings for broken links.
The original issue #1434 would now result in more informative broken link errors:
It would appear that since 0.12.0 the search index being filled with incorrect hyperlinks is no longer happening, but here is output from simulated failures in the index.json link checker: