Skip to content

Files

Latest commit

 

History

History
27 lines (21 loc) · 561 Bytes

require-param-description.md

File metadata and controls

27 lines (21 loc) · 561 Bytes

Pattern: Missing parameter description

Issue: -

Description

Each @param tag should include a description explaining the parameter's purpose. Descriptions help other developers understand how to use the function correctly.

Examples

Example of incorrect code:

/**
 * @param {string} name
 * @param {number} age
 */
function createUser(name, age) {}

Example of correct code:

/**
 * @param {string} name The user's full name
 * @param {number} age The user's age in years
 */
function createUser(name, age) {}