From 2a308c1698c2cc54ad025e193747f95bd3d3ed5e Mon Sep 17 00:00:00 2001 From: Paul Taykalo Date: Thu, 7 Nov 2019 12:07:56 +0200 Subject: [PATCH] Fix DiscardedNotificationCenterObserverRule --- .../Rules/Lint/DiscardedNotificationCenterObserverRule.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/SwiftLintFramework/Rules/Lint/DiscardedNotificationCenterObserverRule.swift b/Source/SwiftLintFramework/Rules/Lint/DiscardedNotificationCenterObserverRule.swift index 555005c883..d2b421c743 100644 --- a/Source/SwiftLintFramework/Rules/Lint/DiscardedNotificationCenterObserverRule.swift +++ b/Source/SwiftLintFramework/Rules/Lint/DiscardedNotificationCenterObserverRule.swift @@ -97,6 +97,7 @@ private extension SourceKittenDictionary { SwiftDeclarationKind.functionKinds.contains(kind) { results.append(dictionary) } + dictionary.substructure.forEach(parse) } parse(self) return results