Skip to main content

MissingEnableComment

Deprecated

This check only exists in Theme Check v1.X.X.

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


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

<!doctype html>
<html>
<head>
{% # theme-check-disable ParserBlockingJavaScript %}
<script src="https://cdnjs.com/jquery.min.js"></script>
</head>
<body>
<!-- ... -->
</body>
</html>

<!doctype html>
<html>
<head>
{% # theme-check-disable ParserBlockingJavaScript %}
<script src="https://cdnjs.com/jquery.min.js"></script>
{% # theme-check-enable ParserBlockingJavaScript %}
</head>
<body>
<!-- ... -->
</body>
</html>

Anchor to Disabling this checkDisabling this check

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


Was this page helpful?