class CheckstyleReports::Entity::FoundError
Attributes
column_number[R]
A detected column Optionality depends on 'source'
@return [Fixnum, nil]
html_unescaped_message[R]
An error message
@return [String]
line_number[R]
A detected line number
@return [Fixnum]
severity[R]
A severity of this error
@return [String]
source[R]
A name of a detector
@return [String]
Public Class Methods
new(node)
click to toggle source
# File lib/checkstyle_reports/entity/found_error.rb, line 31 def initialize(node) raise "Wrong node was passed. expected error but #{node.name}" if node.name != "error" attributes = node.attributes @line_number = attributes["line"].to_i @column_number = attributes["column"]&.to_i @severity = attributes["severity"] @html_unescaped_message = attributes["message"] # unescape implicitly @source = attributes["source"] end