NestedSnippet

Version 0.1.0+

Reports deeply nested render tags or include tags.

Examples

The following examples contain code snippets that either fail or pass 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 The maximum depth of snippets rendering snippets.

Disabling this check

This check is safe to disable.