When theme-check-disable
is used in the middle of a theme file, the corresponding theme-check-enable
comment should also be included.
This check aims at eliminating missing theme-check-enable
comments.
👎 Example of incorrect code for this check:
<!doctype html>
<html>
<head>
{% # theme-check-disable ParserBlockingJavaScript %}
<script src="https://cdnjs.com/jquery.min.js"></script>
</head>
<body>
<!-- ... -->
</body>
</html>
👍 Example of correct code for this check:
<!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>
This check has been introduced in Theme Check 0.3.0.