File tree Expand file tree Collapse file tree 1 file changed +24
-22
lines changed
Tests/SwiftFormatRulesTests Expand file tree Collapse file tree 1 file changed +24
-22
lines changed Original file line number Diff line number Diff line change @@ -187,28 +187,30 @@ public class ValidateDocumentationCommentsTests: DiagnosingTestCase {
187
187
public func testInitializer( ) {
188
188
let input =
189
189
"""
190
- /// Brief summary.
191
- ///
192
- /// - Parameter command: The command to execute in the shell environment.
193
- /// - Returns: Shouldn't be here.
194
- init(label commando: String) {
195
- // ...
196
- }
197
-
198
- /// Brief summary.
199
- ///
200
- /// - Parameter command: The command to execute in the shell environment.
201
- init(label command: String) {
202
- // ...
203
- }
204
-
205
- /// Brief summary.
206
- ///
207
- /// - Parameters:
208
- /// - command: The command to execute in the shell environment.
209
- /// - stdin: The string to use as standard input.
210
- init(label command: String, label2 stdin: String) {
211
- // ...
190
+ struct SomeType {
191
+ /// Brief summary.
192
+ ///
193
+ /// - Parameter command: The command to execute in the shell environment.
194
+ /// - Returns: Shouldn't be here.
195
+ init(label commando: String) {
196
+ // ...
197
+ }
198
+
199
+ /// Brief summary.
200
+ ///
201
+ /// - Parameter command: The command to execute in the shell environment.
202
+ init(label command: String) {
203
+ // ...
204
+ }
205
+
206
+ /// Brief summary.
207
+ ///
208
+ /// - Parameters:
209
+ /// - command: The command to execute in the shell environment.
210
+ /// - stdin: The string to use as standard input.
211
+ init(label command: String, label2 stdin: String) {
212
+ // ...
213
+ }
212
214
}
213
215
"""
214
216
performLint ( ValidateDocumentationComments . self, input: input)
You can’t perform that action at this time.
0 commit comments