                     \(indentedCases ? "be indented within" : "vertically align with") \
                     their enclosing switch statement.
                     """
-                let violation = Violation(position: casePosition, reason: reason)
+                let violation = ReasonedRuleViolation(position: casePosition, reason: reason)
                 violations.append(violation)
             }
         }

import SwiftSyntax

public struct SwitchCaseAlignmentRule: SourceKitFreeRule, ConfigurationProviderRule {
    public var configuration = SwitchCaseAlignmentConfiguration()

    public init() {}

        triggeringExamples: Examples(indentedCases: false).triggeringExamples
    )

    public func makeVisitor(file: SwiftLintFile) -> ViolationsSyntaxVisitor {
        Visitor(locationConverter: file.locationConverter, indentedCases: configuration.indentedCases)
    }
}

extension SwitchCaseAlignmentRule {
    private final class Visitor: ViolationsSyntaxVisitor {
        private let locationConverter: SourceLocationConverter
        private let indentedCases: Bool

