lib/brakeman/report/report_text.rb in brakeman-lib-5.1.1 vs lib/brakeman/report/report_text.rb in brakeman-lib-5.1.2

- old
+ new

@@ -90,10 +90,10 @@ def generate_warnings if tracker.filtered_warnings.empty? HighLine.color("No warnings found", :bold, :green) else warnings = tracker.filtered_warnings.sort_by do |w| - [w.confidence, w.warning_type, w.file, w.line, w.fingerprint] + [w.confidence, w.warning_type, w.file, w.line || 0, w.fingerprint] end.map do |w| output_warning w end double_space "Warnings", warnings