Sha256: d536ce76a5fbca39ee8728ac56efa8d77a8dbab5c8ff0bba04efd3ba55249537

Contents?: true

Size: 447 Bytes

Versions: 1

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true
require 'yaml'

module ThemeCheck
  module ShopifyLiquid
    # TODO: (6/6) https://github.com/Shopify/theme-check/issues/656
    # -
    # Remove 'filters.yml' in favor of 'SourceIndex.filters'
    # -
    module Filter
      extend self

      def labels
        @labels ||= YAML.load(File.read("#{__dir__}/../../../data/shopify_liquid/filters.yml"))
          .values
          .flatten
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
theme-check-1.12.0 lib/theme_check/shopify_liquid/filter.rb