Class: Kamal::Lint::Finding
- Inherits:
-
Struct
- Object
- Struct
- Kamal::Lint::Finding
- Defined in:
- lib/kamal/lint/finding.rb
Instance Attribute Summary collapse
-
#autofix ⇒ Object
Returns the value of attribute autofix.
-
#check_id ⇒ Object
Returns the value of attribute check_id.
-
#column ⇒ Object
Returns the value of attribute column.
-
#file ⇒ Object
Returns the value of attribute file.
-
#line ⇒ Object
Returns the value of attribute line.
-
#message ⇒ Object
Returns the value of attribute message.
-
#severity ⇒ Object
Returns the value of attribute severity.
Instance Method Summary collapse
Instance Attribute Details
#autofix ⇒ Object
Returns the value of attribute autofix
5 6 7 |
# File 'lib/kamal/lint/finding.rb', line 5 def autofix @autofix end |
#check_id ⇒ Object
Returns the value of attribute check_id
5 6 7 |
# File 'lib/kamal/lint/finding.rb', line 5 def check_id @check_id end |
#column ⇒ Object
Returns the value of attribute column
5 6 7 |
# File 'lib/kamal/lint/finding.rb', line 5 def column @column end |
#file ⇒ Object
Returns the value of attribute file
5 6 7 |
# File 'lib/kamal/lint/finding.rb', line 5 def file @file end |
#line ⇒ Object
Returns the value of attribute line
5 6 7 |
# File 'lib/kamal/lint/finding.rb', line 5 def line @line end |
#message ⇒ Object
Returns the value of attribute message
5 6 7 |
# File 'lib/kamal/lint/finding.rb', line 5 def @message end |
#severity ⇒ Object
Returns the value of attribute severity
5 6 7 |
# File 'lib/kamal/lint/finding.rb', line 5 def severity @severity end |
Instance Method Details
#autofixable? ⇒ Boolean
15 16 17 |
# File 'lib/kamal/lint/finding.rb', line 15 def autofixable? !autofix.nil? end |
#to_h ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/kamal/lint/finding.rb', line 19 def to_h { check: check_id, severity: severity.to_s, message: , file: file, line: line, column: column, autofixable: autofixable? } end |