# File lib/graphs/reek_grapher.rb, line 13 def get_metrics(metrics, date) counter = @labels.size @labels.update( { @labels.size => date }) metrics[:reek][:matches].each do |reek_chunk| reek_chunk[:code_smells].each do |code_smell| # speaking of code smell... @reek_count[code_smell[:type]] = [] if @reek_count[code_smell[:type]].nil? if @reek_count[code_smell[:type]][counter].nil? @reek_count[code_smell[:type]][counter] = 1 else @reek_count[code_smell[:type]][counter] += 1 end end end end
Generated with the Darkfish Rdoc Generator 2.