Sha256: 1d2f9593aafc5d6a0fff43232a8b710afbe2f1b92952f227b633a1674ae06855
Contents?: true
Size: 1.13 KB
Versions: 6
Compression:
Stored size: 1.13 KB
Contents
# Prevent missing theme-check-enable comments (`MissingEnableComment`) When `theme-check-disable` is used in the middle of a theme file, the corresponding `theme-check-enable` comment should also be included. ## Check Details This check aims at eliminating missing `theme-check-enable` comments. :-1: Example of **incorrect** code for this check: ```liquid <!doctype html> <html> <head> {% # theme-check-disable ParserBlockingJavaScript %} <script src="https://cdnjs.com/jquery.min.js"></script> </head> <body> <!-- ... --> </body> </html> ``` :+1: Example of **correct** code for this check: ```liquid <!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> ``` ## Version This check has been introduced in Theme Check 0.3.0. ## Resources - [Rule Source][codesource] - [Documentation Source][docsource] [codesource]: /lib/theme_check/checks/missing_enable_comment.rb [docsource]: /docs/checks/missing_enable_comment.md
Version data entries
6 entries across 6 versions & 1 rubygems