jscs-jsdoc icon indicating copy to clipboard operation
jscs-jsdoc copied to clipboard

JsDoc validation rules for jscs

Results 45 jscs-jsdoc issues
Sort by recently updated
recently updated
newest added

Currently, enforce-existence only enforces the existence of jsdoc comments for functions, but not for classes. I.e. in the following `constructor` is required to have a jsdoc comment, but the class...

enhancement
esnext

Add a rule that allows to set a variable maximum width of comment. This rule is designed to prevent silly long comments, e.g. ``` js /** * aaabbbcccaaabbbcccaaabbbcccaaabbbcccaaabbbcccaaabbbcccaaabbbcccaaabbbcccaaabbbcccaaabbbcccaaabbbccc */ ```...

beginner-friendly
new rule

With `verbose` flag, jscs will show `jsDoc: ...`, which is not very useful, this is probably jscs issue but creating issue here just in case

enhancement

Instead of true/false it should have explicit checking type. True and false should be deprecated values in future and left as is for now. upd: To use jsdoc3/jsduck5 as a...

enhancement
tag sets

For example: ``` js /** * Shouldn't report * @param {String} a * @returns {String} */ function (a) { if (a.indexOf('x')) { return '?'; } return a + 'b'; }...

enhancement

Per the [JSDuck documentation](https://github.com/senchalabs/jsduck/wiki/Type-Definitions#type-names), values can be separated by either '`|`' or '`/`'. However, only the first of these works.

enhancement
beginner-friendly
new rule

Per the [JSDuck documentation](https://github.com/senchalabs/jsduck/wiki/Type-Definitions#type-names), values can be literals of booleans, numbers or strings. However, only the first of these works. ### Literals which work - `{true}` - `{false}` - `{true|false}`...

enhancement
beginner-friendly

I am making the new rule for description style for params and basically I want them to either put a string or an object that contains a number. ex: validTagDescription:...

question

- Should check `@throws` declarations for methods with `throw`s statements; - Should check types (as well as returns do); - Should check throws only in current scope (as well as...

enhancement
question
new rule