-
Notifications
You must be signed in to change notification settings - Fork 412
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
Extension shown as undocumented when class is undocumented #936
Comments
Not in Swift proper, but Jazzy does support this. Such support is aimed at extensions to types outside the module. In addition, Jazzy displays extensions together with the base type if it is available, effectively merging them. @Nef10, the particular oddity you noticed is the unusual corner case where these two functionalities overlap:
Note that if you deal with the error for the class, the error for the extension will stop bothering you too. If you document the type,
This is known to work correctly. (Here is an example where methods have been collected from many different extensions. None of the extensions have Jazzy‐only documentation, but the module is still 100% documented. Extension spread like this is far more common for protocols than structures or classes.) If you move the type into a dependency module,
This is also known to work correctly. (Here is an example of such an extension to |
Thank you for your detailed explanation! |
Keeping this for the buglet of putting extensions into |
If a class is not documented, e.g.
The
undocumented.json
shows a warning for the class as well as for the extension:I find this pretty confusing because there is no way to comment an extension - I mean sure I can do
but this will neither be shown anywhere nor silence the warning.
The other weird this is that the
line
isnull
.I am not 100% sure, but could we just remove the warning for the extension because a warning for the class is already shown?
The text was updated successfully, but these errors were encountered: