Reporter

public protocol Reporter : CustomStringConvertible

An interface for reporting violations as strings.

  • The unique identifier for this reporter.

    Declaration

    Swift

    static var identifier: String { get }
  • Whether or not this reporter can output incrementally as violations are found or if all violations must be collected before generating the report.

    Declaration

    Swift

    static var isRealtime: Bool { get }
  • Return a string with the report for the specified violations.

    Declaration

    Swift

    static func generateReport(_ violations: [StyleViolation]) -> String

    Parameters

    violations

    The violations to report.

    Return Value

    The report.