Class: Cane::AbcMaxViolation
- Inherits:
-
Struct
- Object
- Struct
- Cane::AbcMaxViolation
- Defined in:
- lib/cane/abc_max_violation.rb
Overview
Value object used by AbcCheck for a method that is too complicated.
Instance Attribute Summary collapse
-
#complexity ⇒ Object
(also: #sort_index)
Returns the value of attribute complexity.
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#file_name ⇒ Object
Returns the value of attribute file_name.
Instance Method Summary collapse
Instance Attribute Details
#complexity ⇒ Object Also known as: sort_index
Returns the value of attribute complexity
4 5 6 |
# File 'lib/cane/abc_max_violation.rb', line 4 def complexity @complexity end |
#detail ⇒ Object
Returns the value of attribute detail
4 5 6 |
# File 'lib/cane/abc_max_violation.rb', line 4 def detail @detail end |
#file_name ⇒ Object
Returns the value of attribute file_name
4 5 6 |
# File 'lib/cane/abc_max_violation.rb', line 4 def file_name @file_name end |
Instance Method Details
#columns ⇒ Object
5 6 7 |
# File 'lib/cane/abc_max_violation.rb', line 5 def columns [file_name, detail, complexity] end |
#description ⇒ Object
9 10 11 |
# File 'lib/cane/abc_max_violation.rb', line 9 def description "Methods exceeded maximum allowed ABC complexity" end |