From c33da51f72a2042f1171f6dd79a6a8a4c229c836 Mon Sep 17 00:00:00 2001 From: Ladislas de Toldi Date: Thu, 7 Dec 2023 00:32:19 +0100 Subject: [PATCH] :rotating_light: (swiftformat): --enable initCoderUnavailable --- .swiftformat | 2 ++ .../Exercises/DragAndDrop/DraggableImageAnswerNode.swift | 1 + .../IntoZones/DragAndDropIntoZonesView+0_BaseScene.swift | 1 + .../ToAssociate/DragAndDropToAssociateView+0_BaseScene.swift | 1 + 4 files changed, 5 insertions(+) diff --git a/.swiftformat b/.swiftformat index 33613e9cd5..b4a0b5f018 100644 --- a/.swiftformat +++ b/.swiftformat @@ -68,6 +68,8 @@ --indentcase true --indentstrings true +--enable initCoderUnavailable + # Disabled rules --disable blankLinesBetweenImports diff --git a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/DraggableImageAnswerNode.swift b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/DraggableImageAnswerNode.swift index 0e1478872c..14079ea4a1 100644 --- a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/DraggableImageAnswerNode.swift +++ b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/DraggableImageAnswerNode.swift @@ -42,6 +42,7 @@ class DraggableImageAnswerNode: SKSpriteNode { self.defaultPosition = position } + @available(*, unavailable) required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } diff --git a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/IntoZones/DragAndDropIntoZonesView+0_BaseScene.swift b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/IntoZones/DragAndDropIntoZonesView+0_BaseScene.swift index f8400a7cfc..e1b681f86c 100644 --- a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/IntoZones/DragAndDropIntoZonesView+0_BaseScene.swift +++ b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/IntoZones/DragAndDropIntoZonesView+0_BaseScene.swift @@ -46,6 +46,7 @@ extension DragAndDropIntoZonesView { subscribeToChoicesUpdates() } + @available(*, unavailable) required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } diff --git a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/ToAssociate/DragAndDropToAssociateView+0_BaseScene.swift b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/ToAssociate/DragAndDropToAssociateView+0_BaseScene.swift index 60ddbc44f3..0fe871ce2f 100644 --- a/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/ToAssociate/DragAndDropToAssociateView+0_BaseScene.swift +++ b/Modules/GameEngineKit/Sources/_NewSystem/Exercises/DragAndDrop/ToAssociate/DragAndDropToAssociateView+0_BaseScene.swift @@ -30,6 +30,7 @@ extension DragAndDropToAssociateView { subscribeToChoicesUpdates() } + @available(*, unavailable) required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") }