Method: ThemeCheck::DeprecatedGlobalAppBlockType#on_schema
- Defined in:
- lib/theme_check/checks/deprecated_global_app_block_type.rb
#on_schema(node) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/theme_check/checks/deprecated_global_app_block_type.rb', line 11 def on_schema(node) schema = node.inner_json return if schema.nil? if block_types_from(schema).include?(INVALID_GLOBAL_APP_BLOCK_TYPE) add_offense( "Deprecated '#{INVALID_GLOBAL_APP_BLOCK_TYPE}' block type defined in the schema, use '#{VALID_GLOBAL_APP_BLOCK_TYPE}' block type instead.", node: node ) end end |