Sha256: d02c5ad6072a44872dac578c328690fae6989081d95aef97002595743cbbd497
Contents?: true
Size: 906 Bytes
Versions: 23
Compression:
Stored size: 906 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 PlatformOS Check 0.0.1. ## Resources - [Rule Source][codesource] - [Documentation Source][docsource] [codesource]: /lib/platformos_check/checks/syntax_error.rb [docsource]: /docs/checks/syntax_error.md
Version data entries
23 entries across 23 versions & 1 rubygems