@@ -103,51 +103,50 @@ final class OrderedImportsTests: LintOrFormatRuleTestCase {
103
103
]
104
104
)
105
105
}
106
-
107
- func testImportsWithAttributes( ) {
108
- assertFormatting (
109
- OrderedImports . self,
110
- input: """
111
- import Foundation
112
- 1️⃣@preconcurrency import AVFoundation
113
-
114
- @preconcurrency @_implementationOnly import InternalModuleC
115
-
116
- 2️⃣@_implementationOnly import InternalModuleA
117
-
118
- 3️⃣import Core
119
-
120
- @testable @preconcurrency import TestServiceB
121
- 4️⃣@preconcurrency @testable import TestServiceA
122
-
123
- 5️⃣@_implementationOnly @preconcurrency import InternalModuleB
124
-
125
- let a = 3
126
- """ ,
127
- expected: """
128
- @preconcurrency import AVFoundation
129
- import Core
130
- import Foundation
131
-
132
- @_implementationOnly import InternalModuleA
133
- @_implementationOnly @preconcurrency import InternalModuleB
134
- @preconcurrency @_implementationOnly import InternalModuleC
135
-
136
- @preconcurrency @testable import TestServiceA
137
- @testable @preconcurrency import TestServiceB
138
-
139
- let a = 3
140
- """ ,
141
- findings: [
142
- FindingSpec ( " 1️⃣ " , message: " sort import statements lexicographically " ) ,
143
- FindingSpec ( " 2️⃣ " , message: " sort import statements lexicographically " ) ,
144
- FindingSpec ( " 3️⃣ " , message: " place regular imports before implementationOnly imports " ) ,
145
- FindingSpec ( " 4️⃣ " , message: " sort import statements lexicographically " ) ,
146
- FindingSpec ( " 5️⃣ " , message: " place implementationOnly imports before testable imports " )
147
- ]
148
- )
149
- }
150
106
107
+ func testImportsWithAttributes( ) {
108
+ assertFormatting (
109
+ OrderedImports . self,
110
+ input: """
111
+ import Foundation
112
+ 1️⃣@preconcurrency import AVFoundation
113
+
114
+ @preconcurrency @_implementationOnly import InternalModuleC
115
+
116
+ 2️⃣@_implementationOnly import InternalModuleA
117
+
118
+ 3️⃣import Core
119
+
120
+ @testable @preconcurrency import TestServiceB
121
+ 4️⃣@preconcurrency @testable import TestServiceA
122
+
123
+ 5️⃣@_implementationOnly @preconcurrency import InternalModuleB
124
+
125
+ let a = 3
126
+ """ ,
127
+ expected: """
128
+ @preconcurrency import AVFoundation
129
+ import Core
130
+ import Foundation
131
+
132
+ @_implementationOnly import InternalModuleA
133
+ @_implementationOnly @preconcurrency import InternalModuleB
134
+ @preconcurrency @_implementationOnly import InternalModuleC
135
+
136
+ @preconcurrency @testable import TestServiceA
137
+ @testable @preconcurrency import TestServiceB
138
+
139
+ let a = 3
140
+ """ ,
141
+ findings: [
142
+ FindingSpec ( " 1️⃣ " , message: " sort import statements lexicographically " ) ,
143
+ FindingSpec ( " 2️⃣ " , message: " sort import statements lexicographically " ) ,
144
+ FindingSpec ( " 3️⃣ " , message: " place regular imports before implementationOnly imports " ) ,
145
+ FindingSpec ( " 4️⃣ " , message: " sort import statements lexicographically " ) ,
146
+ FindingSpec ( " 5️⃣ " , message: " place implementationOnly imports before testable imports " ) ,
147
+ ]
148
+ )
149
+ }
151
150
152
151
func testImportsOrderWithDocComment( ) {
153
152
assertFormatting (
@@ -198,7 +197,7 @@ final class OrderedImportsTests: LintOrFormatRuleTestCase {
198
197
import UIKit
199
198
200
199
import func Darwin.C.isatty
201
-
200
+
202
201
@_implementationOnly import InternalModuleA
203
202
@preconcurrency @_implementationOnly import InternalModuleB
204
203
@@ -211,7 +210,7 @@ final class OrderedImportsTests: LintOrFormatRuleTestCase {
211
210
import UIKit
212
211
213
212
import func Darwin.C.isatty
214
-
213
+
215
214
@_implementationOnly import InternalModuleA
216
215
@preconcurrency @_implementationOnly import InternalModuleB
217
216
0 commit comments