ViolationCorrection

public struct ViolationCorrection

The correction of a violation that is basically the violation’s range in the source code and a replacement for this range that would fix the violation.

  • Start position of the violation range.

    Declaration

    Swift

    public let start: AbsolutePosition
  • Create a ViolationCorrection.

    Declaration

    Swift

    public init(start: AbsolutePosition, end: AbsolutePosition, replacement: String)

    Parameters

    start

    Start position of the violation range.

    end

    End position of the violation range.

    replacement

    Replacement for the violating range.