Sha256: bd6b751d5a2224326ffddd7f3f07b08443242bcf7008104fb71c7703b1ccf872

Contents?: true

Size: 896 Bytes

Versions: 43

Compression:

Stored size: 896 Bytes

Contents

# 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.

:-1: Examples of **incorrect** code for this check:

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

:+1: Examples of **correct** code for this check:

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

## Check Options

The default configuration for this check is the following:

```yaml
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

- [Rule Source][codesource]
- [Documentation Source][docsource]

[codesource]: /lib/theme_check/checks/syntax_error.rb
[docsource]: /docs/checks/syntax_error.md

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
theme-check-1.5.2 docs/checks/syntax_error.md
theme-check-1.5.1 docs/checks/syntax_error.md
theme-check-1.5.0 docs/checks/syntax_error.md
theme-check-1.4.0 docs/checks/syntax_error.md
theme-check-1.3.0 docs/checks/syntax_error.md
theme-check-1.2.0 docs/checks/syntax_error.md
theme-check-1.1.0 docs/checks/syntax_error.md
theme-check-1.0.0 docs/checks/syntax_error.md
theme-check-0.10.2 docs/checks/syntax_error.md
theme-check-0.10.1 docs/checks/syntax_error.md
theme-check-0.10.0 docs/checks/syntax_error.md
theme-check-0.9.1 docs/checks/syntax_error.md
theme-check-0.9.0 docs/checks/syntax_error.md
theme-check-0.8.3 docs/checks/syntax_error.md
theme-check-0.8.2 docs/checks/syntax_error.md
theme-check-0.8.1 docs/checks/syntax_error.md
theme-check-0.8.0 docs/checks/syntax_error.md
theme-check-0.7.3 docs/checks/syntax_error.md
theme-check-0.7.2 docs/checks/syntax_error.md
theme-check-0.7.1 docs/checks/syntax_error.md