Class: CheckstyleReport::CheckstyleError

Inherits:
Object
  • Object
show all
Defined in:
lib/checkstyle_report/checkstyle_report.rb

Overview

Checkstyle error representation

Constant Summary collapse

SEVERITY_NORMAL =
'normal'.freeze
SEVERITY_WARNING =
'warning'.freeze
SEVERITY_ERROR =
'error'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(severity, message, source, line, column, name) ⇒ CheckstyleError

rubocop:disable Metrics/ParameterLists



71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/checkstyle_report/checkstyle_report.rb', line 71

def initialize(
  severity,
  message,
  source,
  line,
  column,
  name
)
  @severity = severity
  @message = message
  @source = source
  @line = line
  @column = column
  @name = name
end

Instance Attribute Details

#columnObject (readonly)

rubocop:enable Metrics/ParameterLists



88
89
90
# File 'lib/checkstyle_report/checkstyle_report.rb', line 88

def column
  @column
end

#lineObject (readonly)

rubocop:enable Metrics/ParameterLists



88
89
90
# File 'lib/checkstyle_report/checkstyle_report.rb', line 88

def line
  @line
end

#messageObject (readonly)

rubocop:enable Metrics/ParameterLists



88
89
90
# File 'lib/checkstyle_report/checkstyle_report.rb', line 88

def message
  @message
end

#nameObject (readonly)

rubocop:enable Metrics/ParameterLists



88
89
90
# File 'lib/checkstyle_report/checkstyle_report.rb', line 88

def name
  @name
end

#severityObject (readonly)

rubocop:enable Metrics/ParameterLists



88
89
90
# File 'lib/checkstyle_report/checkstyle_report.rb', line 88

def severity
  @severity
end

#sourceObject (readonly)

rubocop:enable Metrics/ParameterLists



88
89
90
# File 'lib/checkstyle_report/checkstyle_report.rb', line 88

def source
  @source
end