Class: MetricFu::CaneViolations::Documentation

Inherits:
Object
  • Object
show all
Defined in:
lib/metric_fu/metrics/cane/violations.rb

Class Method Summary collapse

Class Method Details

.parse(violation_list) ⇒ Object



31
32
33
34
35
# File 'lib/metric_fu/metrics/cane/violations.rb', line 31

def self.parse(violation_list)
  violation_list.split(/\n/).map do |violation|
    { description: violation.strip }
  end
end