class MetricFu::RoodiHotspot
Constants
- COLUMNS
Public Instance Methods
columns()
click to toggle source
# File lib/metric_fu/metrics/roodi/hotspot.rb, line 4 def columns COLUMNS end
generate_records(data, table)
click to toggle source
# File lib/metric_fu/metrics/roodi/hotspot.rb, line 24 def generate_records(data, table) return if data == nil Array(data[:problems]).each do |problem| table << { "metric" => name, "problems" => problem[:problem], "file_path" => problem[:file] } end end
map_strategy()
click to toggle source
# File lib/metric_fu/metrics/roodi/hotspot.rb, line 12 def map_strategy :present end
name()
click to toggle source
# File lib/metric_fu/metrics/roodi/hotspot.rb, line 8 def name :roodi end
present_group(group)
click to toggle source
# File lib/metric_fu/metrics/roodi/hotspot.rb, line 35 def present_group(group) occurences = group.size "found #{occurences} design problems" end
reduce_strategy()
click to toggle source
# File lib/metric_fu/metrics/roodi/hotspot.rb, line 16 def reduce_strategy :sum end
score_strategy()
click to toggle source
# File lib/metric_fu/metrics/roodi/hotspot.rb, line 20 def score_strategy :percentile end