-
Notifications
You must be signed in to change notification settings - Fork 515
Enforce JSDoc #344
Comments
I suppose you should take a look at https://github.com/zxqfox/jscs-jsdoc/ |
Thanks for your help. This certainly looks useful, but I don't think jscs-jsdoc enforces the use of JSDoc. My use case would be that, this would pass
but, this would fail (because there's no documentation):
|
@samjohnb Yeah. I understand and can implement this check. |
Wow, fantastic, thanks! It would be great if this could work for all function declarations, i.e.
The last one is particularly important as we are developing in AngularJS, so we have a lot of code that looks like this:
and it's important that we document what the controller is for, so this would be fine:
|
@samjohnb please continue this discussion on jscs-dev/jscs-jsdoc#4 . Thanks again for contributing! |
Static analysis tools such as Java's CheckStyle and C#'s StyleCop can enforce code documentation for classes, methods and fields. I would like our client-side code documentation to be as comprehensive as our server-side. Would it be possible for JSCS to have a rule that says "you must document [method|class|field] x"?
The text was updated successfully, but these errors were encountered: