Inspectopedia Help

Mismatched JSDoc and function signature

Reports mismatch between the names and the number of parameters within a JSDoc comment and the actual parameters of a function. Suggests updating parameters in JSDoc comment.


/** * @param height Height in pixels */ function sq(height, width) {} // width is not documented

After the quick-fix is applied:

/** * @param height Height in pixels * @param width */ function sq(height, width) {}
Last modified: 29 April 2024