mirror of
https://github.com/nicklockwood/SwiftFormat.git
synced 2026-05-17 10:30:35 +00:00
7872f50c73
Co-authored-by: calda <1811727+calda@users.noreply.github.com>
22 lines
536 B
Swift
22 lines
536 B
Swift
//
|
|
// RedundantProperty.swift
|
|
// SwiftFormat
|
|
//
|
|
// Created by Cal Stephens on 6/9/24.
|
|
// Copyright © 2024 Nick Lockwood. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public extension FormatRule {
|
|
/// Deprecated
|
|
static let redundantProperty = FormatRule(
|
|
help: "Simplifies redundant variable definitions that are immediately returned.",
|
|
deprecationMessage: "Use redundantVariable instead."
|
|
) { formatter in
|
|
FormatRule.redundantVariable.apply(with: formatter)
|
|
} examples: {
|
|
nil
|
|
}
|
|
}
|