Skip to main content

TemplateLength

Deprecated

This check only exists in Theme Check v1.X.X.

Identifies large Liquid template files. To avoid large template files, use snippets to componentize your theme.


TemplateLength:
enabled: true
max_length: 600
exclude_schema: true
exclude_stylesheet: true
exclude_javascript: true
ParameterDescription
enabledWhether this check is enabled.
max_lengthThe maximum number of lines allowed inside a Liquid template.
exclude_schemaWhether the schema lines in a template should be excluded from the line count.
exclude_stylesheetWhether the stylesheet lines in a template should be excluded from the line count.
exclude_javascriptWhether the JavaScript lines in a template should be excluded from the line count.

Anchor to Disabling this checkDisabling this check

This check is safe to disable.


Was this page helpful?