Skip to content

Commit

Permalink
🚨 (swiftformat): --enable initCoderUnavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
ladislas committed Dec 6, 2023
1 parent 1db20ff commit c33da51
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@
--indentcase true
--indentstrings true

--enable initCoderUnavailable

# Disabled rules

--disable blankLinesBetweenImports
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class DraggableImageAnswerNode: SKSpriteNode {
self.defaultPosition = position
}

@available(*, unavailable)
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ extension DragAndDropIntoZonesView {
subscribeToChoicesUpdates()
}

@available(*, unavailable)
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ extension DragAndDropToAssociateView {
subscribeToChoicesUpdates()
}

@available(*, unavailable)
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
Expand Down

0 comments on commit c33da51

Please sign in to comment.