-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
check the comments or document before each function? #2968
Comments
True, we don't have this.
Yes, we can certainly implement something like this. Although it should probably check only public methods. |
thanks! @bbatsov |
This is a great feature, thanks!
I generally agree - however depending on local coding standards, this should be configurable. My current place of work likes private and protected methods to be YARD documented with types. Can I request an additional parameter to apply the Cop to either |
@qnm: Of course! Please open a new issue with a feature request. 😀 |
Expected behavior
Hi,
i find the rule 'Style/Documentation' can check documentation before class or module
i want to add a rule to check the comment or document before each function.
i do not find this kind of rule?
can rubocop support it ?
RuboCop version
Include the output of
rubocop -V
:The text was updated successfully, but these errors were encountered: