Homepage

DuplicateRenderPartialArguments

Last edit: Apr 01, 2026

DuplicateRenderPartialArguments

Severity: warning | Type: LiquidHtml | Aliases: DuplicateRenderPartialParams

This check ensures that no duplicate argument names are provided when rendering a partial using the {% render %} tag. Passing the same argument twice is always a mistake — only one value will be used at runtime.

Examples

✗ Incorrect Code Example (Avoid using this):


{% render 'card', title: "Hello", title: "World" %}

The title argument is passed twice.

✓ Correct Code Example (Use this instead):


{% render 'card', title: "Hello" %}

Configuration

The default configuration for this check:

DuplicateRenderPartialArguments:
  enabled: true
  severity: warning

Disabling This Check

Disabling this check is not recommended. Duplicate arguments are always a mistake.

Resources

Questions?

We are always happy to help with any questions you may have.

contact us