-
Notifications
You must be signed in to change notification settings - Fork 2
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
Second layer defined functions seem not to be checked #293
Comments
Thank you for taking the time to open this issue, I'm happy to hear you have found a use for this package, and I appreciate your interest in improving it Docsig is pretty specific in what it does, but there's a lot of room for customisation. I'll review this issue, and the code you provided a little more, and I'll get back to you as soon as I can (once I have some additional info I can provide) Cheers! |
Functions and classes inside an if block will now be checked Signed-off-by: Stephen Whitlock <stephen@jshwisolutions.com>
Signed-off-by: Stephen Whitlock <stephen@jshwisolutions.com>
Signed-off-by: Stephen Whitlock <stephen@jshwisolutions.com>
Signed-off-by: Stephen Whitlock <stephen@jshwisolutions.com>
For example one, I've decided that it goes against the expected behaviour. If the user was to want to skip an indented function they can prefix it with an underscore. That will now be a valid check by default after this merge, and has been For example two, it is expected that the function is skipped, as it is not in the global scope and exists within the function as sort of a private function or class. I understand that yourself and your team (and other users) may want to document and check these too, so I've I'll include these changes with Any issues please don't hesitate to open another issue Thanks again! |
Hi Stephen, thanks a lot for the implementation. I have already tested it and it works like a charm. Also thanks for the additional flag, I think this completely makes sense. If we have any other issues we will let you know, but at the moment everything is working very smooth! Thanks again and Best |
Great! Thanks for confirming @conrad-stork-basf 😃 |
Hi @jshwi,
we are using docsig for quite a while now to check our code documentation and we are very happy with the tool. However, we have observed that it seems not to check second layer defined functions. In same cases one could think about such scenarios where functions are defined only under certain conditions. Examples of code that could be imagined:
or
I would like to ask if this is expected behavior and if so if there are any plans to also check other layers than the first one? For us this would be really helpful 😃
Thanks in advance and Best
Conrad
The text was updated successfully, but these errors were encountered: