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

Latest commit

 

History

History
15 lines (10 loc) · 615 Bytes

check.md

File metadata and controls

15 lines (10 loc) · 615 Bytes

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 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: