Skip to content

Commit eb5fcfa

Browse files
authored
Merge pull request swiftlang#90 from allevato/fix-config
Configuration-related let-to-var cleanup after merging swiftlang#86 and swiftlang#74.
2 parents a9ac2c2 + ff7c902 commit eb5fcfa

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

Tests/SwiftFormatPrettyPrintTests/ClassDeclTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public class ClassDeclTests: PrettyPrintTestCase {
247247
248248
"""
249249

250-
let config = Configuration()
250+
var config = Configuration()
251251
config.lineBreakBeforeEachGenericRequirement = true
252252
assertPrettyPrintEqual(input: input, expected: expected, linelength: 60, configuration: config)
253253
}
@@ -323,7 +323,7 @@ public class ClassDeclTests: PrettyPrintTestCase {
323323
324324
"""
325325

326-
let config = Configuration()
326+
var config = Configuration()
327327
config.lineBreakBeforeEachGenericRequirement = true
328328
assertPrettyPrintEqual(input: input, expected: expected, linelength: 60, configuration: config)
329329
}
@@ -404,7 +404,7 @@ public class ClassDeclTests: PrettyPrintTestCase {
404404
405405
"""
406406

407-
let config = Configuration()
407+
var config = Configuration()
408408
config.lineBreakBeforeEachArgument = false
409409
assertPrettyPrintEqual(input: input, expected: expected, linelength: 50, configuration: config)
410410
}

Tests/SwiftFormatPrettyPrintTests/EnumDeclTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ public class EnumDeclTests: PrettyPrintTestCase {
326326
327327
"""
328328

329-
let config = Configuration()
329+
var config = Configuration()
330330
config.lineBreakBeforeEachGenericRequirement = true
331331
assertPrettyPrintEqual(input: input, expected: expected, linelength: 60, configuration: config)
332332
}
@@ -415,7 +415,7 @@ public class EnumDeclTests: PrettyPrintTestCase {
415415
416416
"""
417417

418-
let config = Configuration()
418+
var config = Configuration()
419419
config.lineBreakBeforeEachGenericRequirement = true
420420
assertPrettyPrintEqual(input: input, expected: expected, linelength: 60, configuration: config)
421421
}
@@ -496,7 +496,7 @@ public class EnumDeclTests: PrettyPrintTestCase {
496496
497497
"""
498498

499-
let config = Configuration()
499+
var config = Configuration()
500500
config.lineBreakBeforeEachArgument = false
501501
assertPrettyPrintEqual(input: input, expected: expected, linelength: 50, configuration: config)
502502
}

Tests/SwiftFormatPrettyPrintTests/ExtensionDeclTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ public class ExtensionDeclTests: PrettyPrintTestCase {
161161
162162
"""
163163

164-
let config = Configuration()
164+
var config = Configuration()
165165
config.lineBreakBeforeEachGenericRequirement = true
166166
assertPrettyPrintEqual(input: input, expected: expected, linelength: 70, configuration: config)
167167
}
@@ -249,7 +249,7 @@ public class ExtensionDeclTests: PrettyPrintTestCase {
249249
250250
"""
251251

252-
let config = Configuration()
252+
var config = Configuration()
253253
config.lineBreakBeforeEachGenericRequirement = true
254254
assertPrettyPrintEqual(input: input, expected: expected, linelength: 70, configuration: config)
255255
}
@@ -362,7 +362,7 @@ public class ExtensionDeclTests: PrettyPrintTestCase {
362362
363363
"""
364364

365-
let config = Configuration()
365+
var config = Configuration()
366366
config.lineBreakBeforeEachGenericRequirement = true
367367
assertPrettyPrintEqual(input: input, expected: expected, linelength: 50, configuration: config)
368368
}

Tests/SwiftFormatPrettyPrintTests/FunctionDeclTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public class FunctionDeclTests: PrettyPrintTestCase {
334334
335335
"""
336336

337-
let config = Configuration()
337+
var config = Configuration()
338338
config.lineBreakBeforeEachArgument = false
339339
assertPrettyPrintEqual(input: input, expected: expected, linelength: 50, configuration: config)
340340
}
@@ -600,7 +600,7 @@ public class FunctionDeclTests: PrettyPrintTestCase {
600600
601601
"""
602602

603-
let config = Configuration()
603+
var config = Configuration()
604604
config.lineBreakBeforeEachGenericRequirement = true
605605
assertPrettyPrintEqual(input: input, expected: expected, linelength: 30, configuration: config)
606606
}

Tests/SwiftFormatPrettyPrintTests/InitializerDeclTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public class InitializerDeclTests: PrettyPrintTestCase {
290290
291291
"""
292292

293-
let config = Configuration()
293+
var config = Configuration()
294294
config.lineBreakBeforeEachArgument = false
295295
config.lineBreakBeforeEachGenericRequirement = true
296296
assertPrettyPrintEqual(input: input, expected: expected, linelength: 50, configuration: config)
@@ -369,7 +369,7 @@ public class InitializerDeclTests: PrettyPrintTestCase {
369369
370370
"""
371371

372-
let config = Configuration()
372+
var config = Configuration()
373373
config.lineBreakBeforeEachArgument = false
374374
assertPrettyPrintEqual(input: input, expected: expected, linelength: 40, configuration: config)
375375
}

Tests/SwiftFormatPrettyPrintTests/StructDeclTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public class StructDeclTests: PrettyPrintTestCase {
247247
248248
"""
249249

250-
let config = Configuration()
250+
var config = Configuration()
251251
config.lineBreakBeforeEachGenericRequirement = true
252252
assertPrettyPrintEqual(input: input, expected: expected, linelength: 60, configuration: config)
253253
}
@@ -335,7 +335,7 @@ public class StructDeclTests: PrettyPrintTestCase {
335335
336336
"""
337337

338-
let config = Configuration()
338+
var config = Configuration()
339339
config.lineBreakBeforeEachGenericRequirement = true
340340
assertPrettyPrintEqual(input: input, expected: expected, linelength: 60, configuration: config)
341341
}
@@ -416,7 +416,7 @@ public class StructDeclTests: PrettyPrintTestCase {
416416
417417
"""
418418

419-
let config = Configuration()
419+
var config = Configuration()
420420
config.lineBreakBeforeEachArgument = false
421421
assertPrettyPrintEqual(input: input, expected: expected, linelength: 50, configuration: config)
422422
}

Tests/SwiftFormatPrettyPrintTests/SubscriptDeclTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public class SubscriptDeclTests: PrettyPrintTestCase {
200200
201201
"""
202202

203-
let config = Configuration()
203+
var config = Configuration()
204204
config.lineBreakBeforeEachArgument = false
205205
config.lineBreakBeforeEachGenericRequirement = true
206206
assertPrettyPrintEqual(input: input, expected: expected, linelength: 50, configuration: config)
@@ -473,7 +473,7 @@ public class SubscriptDeclTests: PrettyPrintTestCase {
473473
474474
"""
475475

476-
let config = Configuration()
476+
var config = Configuration()
477477
config.lineBreakBeforeEachGenericRequirement = true
478478
assertPrettyPrintEqual(input: input, expected: expected, linelength: 34, configuration: config)
479479
}

0 commit comments

Comments
 (0)