MissingEnableComment

Version 0.3.0+

Makes sure that when theme-check-disable is used in the middle of a template, the corresponding theme-check-enable comment is also present.

Examples

The following examples contain code snippets that either fail or pass this check.

✗ Fail

✓ Pass

Disabling this check

Disabling this check isn't recommended because Theme Check might not run on large sections of your code.