Skip to content

Commit

Permalink
move summary table to end of output
Browse files Browse the repository at this point in the history
  • Loading branch information
ghbren committed Aug 10, 2020
1 parent 2175ec1 commit bc93915
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/salus/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ def to_s(verbose: false, wrap: WRAP, use_colors: false)
]
end

output += "\n\n#{render_summary(scan_reports, use_colors: use_colors)}"

scan_reports.each do |report, _required|
output += "\n\n#{report.to_s(verbose: verbose, wrap: wrap, use_colors: use_colors)}"
end
Expand Down Expand Up @@ -108,6 +106,7 @@ def to_s(verbose: false, wrap: WRAP, use_colors: false)
output += indent(wrapify(stringified_errors, indented_wrap))
end

output += "\n\n#{render_summary(scan_reports, use_colors: use_colors)}"
output
end

Expand Down

0 comments on commit bc93915

Please sign in to comment.