if I have params with properties and more than one argument I have wrong detection for redundant param statement.
Example of code linting fails on jscs-jsdoc v 0.4.0:
/**
* Example function
* @param {Object} options some options
* @param {Number} options.id some id
* @param {String} options.filename some filename
* @param {Array} rest rest arguments
* @returns {Boolean} to be or not to be
*/
function hello(options, rest) {
return (options.filename) ? true : false;
}
Fail log:
Message:
redundant param statement at example.js :
1 |/**
--------^
2 | * Example function
3 | * @param {Object} options some options
If code looks like this it works like a charm:
/**
* Example function
* @param {Object} options some options
* @param {Number} options.id some id
* @param {String} options.filename some filename
* @returns {Boolean} to be or not to be
*/
function hello(options) {
return (options.filename) ? true : false;
}
if I have params with properties and more than one argument I have wrong detection for redundant param statement.
Example of code linting fails on jscs-jsdoc v 0.4.0:
Fail log:
If code looks like this it works like a charm: