Skip to content

Commit d470ec8

Browse files
committed
Selectively ignore 'weak_delegate' SwiftLint rule.
1 parent 62fdb39 commit d470ec8

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Tests/PusherConnectionDelegateTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ class PusherConnectionDelegateTests: XCTestCase {
5252
var key: String!
5353
var pusher: Pusher!
5454
var socket: MockWebSocket!
55-
weak var dummyDelegate: DummyDelegate!
55+
// swiftlint:disable:next weak_delegate
56+
var dummyDelegate: DummyDelegate!
5657

5758
override func setUp() {
5859
super.setUp()

Tests/PusherEventQueueTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class PusherEventQueueTests: XCTestCase {
3333

3434
var eventQueue: PusherEventQueue!
3535
var eventFactory: PusherEventFactory!
36-
weak var eventQueueDelegate: InlineMockEventQueueDelegate!
36+
// swiftlint:disable:next weak_delegate
37+
var eventQueueDelegate: InlineMockEventQueueDelegate!
3738
var channels: PusherChannels!
3839
var connection: PusherConnection!
3940

Tests/PusherSwift-Only/PusherEventQueue+DecryptionTests.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ class PusherEventQueueDecryptionTests: XCTestCase {
66
var eventQueue: PusherEventQueue!
77
var channels: PusherChannels!
88
var eventFactory: PusherEventFactory!
9-
weak var eventQueueDelegate: InlineMockEventQueueDelegate!
9+
// swiftlint:disable:next weak_delegate
10+
var eventQueueDelegate: InlineMockEventQueueDelegate!
1011
var mockConnection: PusherConnection!
1112

1213
override func setUp() {

0 commit comments

Comments
 (0)