Skip to main content

UniqueDocParamNames

Each parameter defined in LiquidDoc needs to have a unique name.


The following examples contain code snippets that either fail or pass this check.

In the following example, there are two parameters defined in LiquidDoc with the same name:

{% doc %}
@param {string} some_input
@param {number} some_input
{% enddoc %}

In the following example, all the parameters in LiquidDoc have different names:

{% doc %}
@param {string} some_str
@param {number} some_num
{% enddoc %}

The following example contains the default configuration for this check:

UniqueDocParamNames:
enabled: true
severity: error
ParameterDescription
enabledWhether this check is enabled.
severityThe severity of the check.

Anchor to Disabling this checkDisabling this check

Disabling this check isn't recommended.


Was this page helpful?