diff --git a/Rules.md b/Rules.md index 175dc8813dc..d4955195792 100644 --- a/Rules.md +++ b/Rules.md @@ -18746,7 +18746,7 @@ class TestViewController: UIViewController { ```swift class TestViewController: UIViewController { // IBOutlets - ↓@IBOutlet private var view1: UIView! + @IBOutlet private ↓var view1: UIView! // Computed Instance Properties private var hasAnyLayoutedView: Bool { @@ -18758,7 +18758,7 @@ class TestViewController: UIViewController { ```swift class TestViewController: UIViewController { // Initializers - ↓override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { + override ↓init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) } @@ -18771,7 +18771,7 @@ class TestViewController: UIViewController { ```swift class TestViewController: UIViewController { // View Life-Cycle Methods - ↓override func viewDidLoad() { + override ↓func viewDidLoad() { super.viewDidLoad() view1.setNeedsLayout() @@ -18789,7 +18789,7 @@ class TestViewController: UIViewController { ```swift class TestViewController: UIViewController { // IBActions - ↓@IBAction func goNextButtonPressed() { + @IBAction ↓func goNextButtonPressed() { goToNextVc() delegate?.didPressTrackedButton() } diff --git a/Source/SwiftLintFramework/Rules/TypeContentsOrderRule.swift b/Source/SwiftLintFramework/Rules/TypeContentsOrderRule.swift index 680e26c21be..2abfe0aa514 100644 --- a/Source/SwiftLintFramework/Rules/TypeContentsOrderRule.swift +++ b/Source/SwiftLintFramework/Rules/TypeContentsOrderRule.swift @@ -163,7 +163,7 @@ public struct TypeContentsOrderRule: ConfigurationProviderRule, OptInRule { """ class TestViewController: UIViewController { // IBOutlets - ↓@IBOutlet private var view1: UIView! + @IBOutlet private ↓var view1: UIView! // Computed Instance Properties private var hasAnyLayoutedView: Bool { @@ -174,7 +174,7 @@ public struct TypeContentsOrderRule: ConfigurationProviderRule, OptInRule { """ class TestViewController: UIViewController { // Initializers - ↓override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { + override ↓init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) { super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) } @@ -186,7 +186,7 @@ public struct TypeContentsOrderRule: ConfigurationProviderRule, OptInRule { """ class TestViewController: UIViewController { // View Life-Cycle Methods - ↓override func viewDidLoad() { + override ↓func viewDidLoad() { super.viewDidLoad() view1.setNeedsLayout() @@ -203,7 +203,7 @@ public struct TypeContentsOrderRule: ConfigurationProviderRule, OptInRule { """ class TestViewController: UIViewController { // IBActions - ↓@IBAction func goNextButtonPressed() { + @IBAction ↓func goNextButtonPressed() { goToNextVc() delegate?.didPressTrackedButton() }