mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
20 lines
468 B
Swift
20 lines
468 B
Swift
//
|
|
// SortedSwitchCases.swift
|
|
// SwiftFormat
|
|
//
|
|
// Created by Facundo Menzella on 9/22/20.
|
|
// Copyright © 2024 Nick Lockwood. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public extension FormatRule {
|
|
/// Deprecated
|
|
static let sortedSwitchCases = FormatRule(
|
|
help: "Sort switch cases alphabetically.",
|
|
deprecationMessage: "Use sortSwitchCases instead."
|
|
) { formatter in
|
|
FormatRule.sortSwitchCases.apply(with: formatter)
|
|
}
|
|
}
|