Class: ThemeCheck::AssetUrlFilters
- Inherits:
-
LiquidCheck
- Object
- Check
- LiquidCheck
- ThemeCheck::AssetUrlFilters
- Defined in:
- lib/theme_check/checks/asset_url_filters.rb
Constant Summary collapse
- HTML_FILTERS =
[ 'stylesheet_tag', 'script_tag', 'img_tag', ]
- ASSET_URL_FILTERS =
[ 'asset_url', 'asset_img_url', 'file_img_url', 'file_url', 'global_asset_url', 'img_url', 'payment_type_img_url', 'shopify_asset_url', ]
Constants inherited from Check
Check::CATEGORIES, Check::SEVERITIES, Check::SEVERITY_VALUES
Instance Attribute Summary
Attributes inherited from Check
#ignored_patterns, #offenses, #options, #theme
Instance Method Summary collapse
Methods included from ChecksTracking
Methods included from ParsingHelpers
Methods inherited from Check
#==, #add_offense, all, can_disable, #can_disable?, categories, #categories, category, #code_name, doc, #doc, docs_url, #ignore!, #ignored?, #severity, severity, #severity=, #severity_value, severity_value, single_file, #single_file?, #to_s, #whole_theme?
Methods included from JsonHelpers
Instance Method Details
#on_variable(node) ⇒ Object
24 25 26 |
# File 'lib/theme_check/checks/asset_url_filters.rb', line 24 def on_variable(node) record_variable_offense(node) end |