ViolationCorrection

public struct ViolationCorrection : Hashable

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.

  • 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.