code: def print_errors(filename, errors, output_json=False, compact=False):
      
      if output_json:
          click.echo(errors_to_json(errors))
  
      else:
          for error in errors:
  
              (check, message, line, column, start, end,
               extent, severity, replacements) = error
  
              if compact:
                  filename = "-"
  
              click.echo(
                  filename + ":" +
                  str(1 + line) + ":" +
                  str(1 + column) + ": " +
                  check + " " +
                  message)
docs: Print the errors, resulting from lint, for filename.