Sha256: 8e8370f52636af9c01cce40e52096092415ae561cfdb5391226a8a48db62e54a

Contents?: true

Size: 401 Bytes

Versions: 10

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  # Recommends replacing `include` for `render`
  class ConvertIncludeToRender < LiquidCheck
    severity :suggestion
    category :liquid
    doc "https://shopify.dev/docs/themes/liquid/reference/tags/deprecated-tags#include"

    def on_include(node)
      add_offense("`include` is deprecated - convert it to `render`", node: node)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
theme-check-0.4.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.3.3 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.3.2 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.3.1 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.3.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.2.2 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.2.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.1.2 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.1.1 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.1.0 lib/theme_check/checks/convert_include_to_render.rb