Class: CheckstyleError
- Inherits:
-
Struct
- Object
- Struct
- CheckstyleError
- Defined in:
- lib/checkstyle_format/checkstyle_error.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
-
#severity ⇒ Object
Returns the value of attribute severity.
-
#source ⇒ Object
Returns the value of attribute source.
Class Method Summary collapse
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column
1 2 3 |
# File 'lib/checkstyle_format/checkstyle_error.rb', line 1 def column @column end |
#file_name ⇒ Object
Returns the value of attribute file_name
1 2 3 |
# File 'lib/checkstyle_format/checkstyle_error.rb', line 1 def file_name @file_name end |
#line ⇒ Object
Returns the value of attribute line
1 2 3 |
# File 'lib/checkstyle_format/checkstyle_error.rb', line 1 def line @line end |
#message ⇒ Object
Returns the value of attribute message
1 2 3 |
# File 'lib/checkstyle_format/checkstyle_error.rb', line 1 def @message end |
#severity ⇒ Object
Returns the value of attribute severity
1 2 3 |
# File 'lib/checkstyle_format/checkstyle_error.rb', line 1 def severity @severity end |
#source ⇒ Object
Returns the value of attribute source
1 2 3 |
# File 'lib/checkstyle_format/checkstyle_error.rb', line 1 def source @source end |
Class Method Details
.generate(node, parent_node, base_path) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/checkstyle_format/checkstyle_error.rb', line 2 def self.generate(node, parent_node, base_path) CheckstyleError.new( parent_node[:name].sub(/^#{base_path}/, ""), node[:line].to_i, node[:column].nil? ? nil : node[:column].to_i, node[:severity], node[:message], node[:source] ) end |