From 8fa0e7868763af0ae2d06247779addb9cc80707f Mon Sep 17 00:00:00 2001 From: Cal Stephens Date: Fri, 13 Nov 2020 09:59:22 -0800 Subject: [PATCH] Increase strictness of grouped extensions --- Sources/Rules.swift | 23 ++++++++++-- Tests/RulesTests+Organization.swift | 54 +++++++++++++++++++++++++++++ Tests/XCTestManifests.swift | 3 ++ 3 files changed, 78 insertions(+), 2 deletions(-) diff --git a/Sources/Rules.swift b/Sources/Rules.swift index 7547d492e..d97f9b52a 100644 --- a/Sources/Rules.swift +++ b/Sources/Rules.swift @@ -5125,9 +5125,28 @@ public struct _FormatRules { // extension Foo { } // This extension is "grouped" with its extending type // extension String { } // This extension is standalone (not grouped with any type) // - let isGroupedWithExtendingType = declarations[..