lib/brakeman/report.rb in brakeman-min-4.10.1 vs lib/brakeman/report.rb in brakeman-min-5.0.0.pre1

- old
+ new

@@ -43,10 +43,13 @@ when :to_junit require_report 'junit' Brakeman::Report::JUnit when :to_sarif return self.to_sarif + when :to_sonar + require_report 'sonar' + Brakeman::Report::Sonar else raise "Invalid format: #{format}. Should be one of #{VALID_FORMATS.inspect}" end generate(reporter) @@ -65,9 +68,14 @@ end def to_json require_report 'json' generate Brakeman::Report::JSON + end + + def to_sonar + require_report 'sonar' + generate Brakeman::Report::Sonar end def to_table require_report 'table' generate Brakeman::Report::Table