code: def report_alerts(alerts, output_format='table'):
      
      num_alerts = len(alerts)
  
      if output_format == 'json':
          click.echo(json.dumps(alerts, indent=4))
      else:
          console.info('Issues found: {0}'.format(num_alerts))
          if num_alerts > 0:
              click.echo(tabulate([[a['alert'], a['risk'], a['cweid'], a['url']] for a in alerts],
                                  headers=['Alert', 'Risk', 'CWE ID', 'URL'], tablefmt='grid'))
docs: Print our alerts in the given format.