Sha256: 49b85508b51bc0c17165fc666afbd2267295dca53c8448f02484bee4fb537cfa

Contents?: true

Size: 314 Bytes

Versions: 25

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

module PlatformosCheck
  class HtmlParsingError < HtmlCheck
    severity :error
    category :html
    doc docs_url(__FILE__)

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

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
platformos-check-0.2.0 lib/platformos_check/checks/html_parsing_error.rb
platformos-check-0.1.0 lib/platformos_check/checks/html_parsing_error.rb
platformos-check-0.0.3 lib/platformos_check/checks/html_parsing_error.rb
platformos-check-0.0.2 lib/platformos_check/checks/html_parsing_error.rb
platformos-check-0.0.1 lib/platformos_check/checks/html_parsing_error.rb