This check exists to prevent bloat in themes by surfacing variable definitions that are not used.
This check is aimed at eliminating bloat in themes and highlight user errors.
👎 Examples of incorrect code for this check:
{% assign this_variable_is_not_used = 1 %}
👍 Examples of correct code for this check:
{% assign this_variable_is_used = 1 %}
{% if this_variable_is_used == 1 %}
<span>Hello!</span>
{% endif %}
The default configuration for this check is the following:
UnusedAssign:
enabled: true
It's safe to disable this rule.
This check has been introduced in Theme Check 0.1.0.