Sort let and var propery name alapbetically. However, exclude SwiftUI Views as this would cause an issue with trailing closure syntax. Also id and identifier should be allowed as first items
Triggering:
public struct EmailViewItems: Identifiable {
public let id = UUID()
public let button: String
public let appName: String
public let address: String
public struct EmailViewItems {
public let button: String
public let appName: String
public let address: String
public let id = UUID()
Non-triggering:
public struct EmailViewItems: Identifiable {
public let id = UUID()
public let appName: String
public let address: String
public let button: String
public struct EmailViewItems {
public let id = UUID()
public let appName: String
public let address: String
public let button: String
struct Icon: View {
private var image: Image
private var width: CGFloat
private var height: CGFloat
New Issue Checklist
New rule request
Sort let and var propery name alapbetically. However, exclude SwiftUI Views as this would cause an issue with trailing closure syntax. Also
id
andidentifier
should be allowed as first itemsTriggering:
Non-triggering: