Sha256: 1e5dc6be4c6271c65c47ac69d1f349a4f04a5e838faa884144d78e65437fe385

Contents?: true

Size: 340 Bytes

Versions: 18

Compression:

Stored size: 340 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  # Recommends replacing `include` for `render`
  class ConvertIncludeToRender < LiquidCheck
    severity :suggestion
    category :liquid
    doc docs_url(__FILE__)

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
theme-check-1.2.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-1.1.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-1.0.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.10.2 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.10.1 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.10.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.9.1 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.9.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.8.3 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.8.2 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.8.1 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.8.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.7.3 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.7.2 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.7.1 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.7.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.6.0 lib/theme_check/checks/convert_include_to_render.rb
theme-check-0.5.0 lib/theme_check/checks/convert_include_to_render.rb