-
Notifications
You must be signed in to change notification settings - Fork 412
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add command-line option to set the minimum access control to document #69
Comments
So currently it is expected behaviour that private entities (enums, structs, etc.) will show up in the doc by default correct? |
@beltex yes, that is correct. |
Cool, thanks @segiddins! |
@jpsim the easiest way to do this would be if SourceKitten could just add an ACL to its output for each token, but I don't know if SourceKit exposes that information. |
@segiddins sourcekitten already exposes ACL information, i.e.:
However, simply ignoring tokens whose access control levels are under a given threshold would make the documentation coverage number invalid, since it considers all tokens. There are two possible approaches, I think:
I'm not sure which one is best, so I'll just pick the easiest one and see if it works 😉. |
I say approach number 1 -Samuel E. Giddins On Dec 14, 2014, at 4:35 PM, JP Simard notifications@github.com wrote: @segiddins sourcekitten already exposes ACL information, i.e.: "key.attributes" : [ make sourcekitten return all detected tokens (documented or not) and filter them from jazzy — |
We only seem to get when its private, and not internal or public. -Samuel E. Giddins On Dec 14, 2014, at 4:35 PM, JP Simard notifications@github.com wrote: @segiddins sourcekitten already exposes ACL information, i.e.: "key.attributes" : [ make sourcekitten return all detected tokens (documented or not) and filter them from jazzy — |
Actually, it's much worse than that. I've spoken to SourceKit people about it and there's not much motivation to fix that, so we should use an alternative mode of ACL detection. |
Add config option for minimum ACL to document (closes #69)
Works like a charm, thanks @jpsim & @segiddins! :) |
--minimum-access-control [public | internal | private]
withpublic
as defaultThe text was updated successfully, but these errors were encountered: