Sha256: f93f380c01fe6445263863ff05a73dd1d88c5e17d5105eb3b512774a9f7d53da

Contents?: true

Size: 615 Bytes

Versions: 23

Compression:

Stored size: 615 Bytes

Contents

# Check API

Theme Check uses static analysis. It parses theme files into an AST, and then calls the appropriate checks to analyze it.

An [AST](https://en.wikipedia.org/wiki/Abstract_syntax_tree) is a tree of node, representing the theme file.

Checks are Ruby classes with callback methods:
- `on_TYPE` that runs before a node of the specific TYPE is visited.
- `after_TYPE` that runs after a node of the specific TYPE is visited.

There are three types of checks currently supported:

- [`LiquidCheck`](/docs/api/liquid_check.md)
- [`HtmlCheck`](/docs/api/html_check.md)
- [`JsonCheck`](/docs/api/html_check.md)

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
theme-check-1.10.2 docs/api/check.md
theme-check-1.10.1 docs/api/check.md
theme-check-1.10.0 docs/api/check.md
theme-check-1.9.2 docs/api/check.md
theme-check-1.9.1 docs/api/check.md
theme-check-1.9.0 docs/api/check.md
theme-check-1.8.0 docs/api/check.md
theme-check-1.7.2 docs/api/check.md
theme-check-1.7.1 docs/api/check.md
theme-check-1.7.0 docs/api/check.md
theme-check-1.6.2 docs/api/check.md
theme-check-1.6.1 docs/api/check.md
theme-check-1.6.0 docs/api/check.md
theme-check-1.5.2 docs/api/check.md
theme-check-1.5.1 docs/api/check.md
theme-check-1.5.0 docs/api/check.md
theme-check-1.4.0 docs/api/check.md
theme-check-1.3.0 docs/api/check.md
theme-check-1.2.0 docs/api/check.md
theme-check-1.1.0 docs/api/check.md