Sha256: 5b634f63c79326a44a9875ff090a098a178857fd6de814beb5b80eff1a2d496e

Contents?: true

Size: 317 Bytes

Versions: 11

Compression:

Stored size: 317 Bytes

Contents

# frozen_string_literal: true
module ThemeCheck
  class HtmlParsingError < HtmlCheck
    severity :error
    category :html
    doc docs_url(__FILE__)

    def on_parse_error(exception, template)
      add_offense("HTML in this template can not be parsed: #{exception.message}", template: template)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
theme-check-1.6.1 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.6.0 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.5.2 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.5.1 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.5.0 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.4.0 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.3.0 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.2.0 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.1.0 lib/theme_check/checks/html_parsing_error.rb
theme-check-1.0.0 lib/theme_check/checks/html_parsing_error.rb
theme-check-0.10.2 lib/theme_check/checks/html_parsing_error.rb