DeprecatedTag
Discourages using deprecated tags in themes. Deprecated tags have their own unique implementation within this check. For example the include
tag is deprecated but is still used in themes. This check looks for the include
tag and provides a message that it's deprecated.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check:
Anchor to ✗ Fail✗ Fail
<Partial filePath="snippet" />
Anchor to ✓ Pass✓ Pass
{% render 'snippet' %}
Anchor to OptionsOptions
The following example contains the default configuration for this check:
DeprecatedTag
enabledtrue
severity warning
Parameter | Description |
---|---|
enabled | Whether the check is enabled. |
severity | The severity of the check. |
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended.
Anchor to AliasesAliases
For backward compatibility with configuration files made for Theme Check v1.X.X
, this check is also recognized in configuration files with the following name:
DeprecatedTags
Was this page helpful?