NestedSnippet

Version 0.1.0+

Reports deeply nested render tags or include tags.

Examples

Below are examples of code that fails and passes this check.

✗ Fail

The following example includes a series of nested snippets.

templates/index.liquid

snippets/one.liquid

snippets/two.liquid

snippets/three.liquid

snippets/four.liquid

✓ Pass

The following example includes snippets with only two levels of nesting.

templates/index.liquid

snippets/one.liquid

snippets/two.liquid

Options

Parameter Description
enabled Whether this check is enabled.
max_nesting_level Determines the maximum depth of snippets rendering snippets.

Disabling this check

This check is safe to disable.