Skip to content

Files

Latest commit

 

History

History
36 lines (28 loc) · 551 Bytes

check-access.md

File metadata and controls

36 lines (28 loc) · 551 Bytes

Pattern: Invalid access declaration

Issue: -

Description

Access levels in JSDoc must use valid values (private, protected, public, package) and should not mix @access tag with direct access tags (@private, etc.) in the same block.

Examples

Example of incorrect code:

/**
 * @access private
 * @public
 */
function example() {}

/**
 * @access invalid
 */
function another() {}

Example of correct code:

/**
 * @access private
 */
function example() {}

/**
 * @protected
 */
function another() {}