Skip to content

Commit

Permalink
Show ignored warnings at end of report text, explicitly return output…
Browse files Browse the repository at this point in the history
… string
  • Loading branch information
gazayas committed Aug 6, 2024
1 parent 3203739 commit 5d40a44
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/brakeman/report/report_text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def generate_report
unless summary_option == :no_summary
add_chunk generate_header
add_chunk generate_overview
add_chunk generate_show_ignored_overview if tracker.options[:show_ignored] && ignored_warnings.any?
add_chunk generate_warning_overview
end

Expand All @@ -22,6 +21,9 @@ def generate_report
add_chunk generate_obsolete
add_chunk generate_errors
add_chunk generate_warnings
add_chunk generate_show_ignored_overview if tracker.options[:show_ignored] && ignored_warnings.any?

@output_string
end

def add_chunk chunk, out = @output_string
Expand Down

0 comments on commit 5d40a44

Please sign in to comment.