Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

Latest commit

 

History

History
49 lines (32 loc) · 896 Bytes

syntax_error.md

File metadata and controls

49 lines (32 loc) · 896 Bytes

Prevent Syntax Errors (SyntaxError)

This check exists to inform the user of Liquid syntax error earlier.

Check Details

This check is aimed at eliminating syntax errors.

👎 Examples of incorrect code for this check:

{% include 'muffin'
{% assign foo = 1 }}
{% unknown %}
{% if collection | size > 0 %}

👍 Examples of correct code for this check:

{% include 'muffin' %}
{% assign foo  = 1 %}
{% if collection.size > 0 %}

Check Options

The default configuration for this check is the following:

SyntaxError:
  enabled: true

When Not To Use It

It is not safe to disable this rule.

Version

This check has been introduced in Theme Check 0.1.0.

Resources