Commit 3952a4d8 authored by Coraline Ehmke's avatar Coraline Ehmke

Line number output in HTML report

parent 48ce49ed
......@@ -19,7 +19,7 @@ module Snuffle
end
def columns
["filename", "host class", "candidate object attributes"]
["filename", "host class", "candidate object attributes", "source line numbers"]
end
def root_path
......
......@@ -19,8 +19,8 @@ module Snuffle
end
def rows
summary.object_candidates.map do |candidate|
[summary.path_to_file, summary.class_name, "#{candidate.join(', ')}"]
summary.cohorts.group_by{|c| c.values}.map do |cohort|
[summary.path_to_file, summary.class_name, "#{cohort[0].join(', ')}", cohort[1].map(&:line_numbers).join(", ")]
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment