Using JSCS v1.7.3
With jsDoc options:
"jsDoc": {
"checkParamNames": true,
"checkRedundantParams": true,
"requireParamTypes": true,
"checkReturnTypes": true,
"requireReturnTypes": true,
"checkTypes": true,
"checkRedundantReturns": true,
"checkRedundantAccess": true,
"leadingUnderscoreAccess": "private"
}
This code in v0.0.19:
/**
* Test
*
* @param {String} mystr
* @return {String}
*/
exports.testStr = function(mystr) {
'use strict';
return mystr;
};
Validates as:
↳ jscs server/lib/test.js
redundant param statement at server/lib/test.js :
1 |/**
--------^
2 | * Test
3 | *
missing param name at server/lib/test.js :
3 | *
4 | * @param {String} mystr
5 | * @return {String}
-----------^
6 | */
7 |exports.testStr = function(mystr) {
2 code style errors found.
v0.0.16 will pass the checks
Using JSCS v1.7.3
With jsDoc options:
This code in v0.0.19:
Validates as:
v0.0.16 will pass the checks