Sha256: 2e8dbe733adfadedf9505a282ab560c816167595bffa08592796eabfed7a3707
Contents?: true
Size: 331 Bytes
Versions: 30
Compression:
Stored size: 331 Bytes
Contents
# frozen_string_literal: true module ThemeCheck class ValidSchema < LiquidCheck severity :suggestion category :json doc docs_url(__FILE__) def on_schema(node) JSON.parse(node.value.nodelist.join) rescue JSON::ParserError => e add_offense(format_json_parse_error(e), node: node) end end end
Version data entries
30 entries across 30 versions & 1 rubygems