Skip to content

Commit 68c4ead

Browse files
authored
Update SwiftFormat rules to properly format decimal numbers (#123)
1 parent 8a1acea commit 68c4ead

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.swiftformat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
## Date format to use in file headers: system (default), iso, dmy, mdy, or custom.
1313
--dateformat mdy
1414

15+
## Grouping for decimal numbers: 3,6 (default).
16+
## First number: group size (the number of digits in each group).
17+
## Second number: threshold (the minimum number of digits in a number before grouping is applied).
18+
--decimalgrouping 3,4
19+
1520
## Change type with only static members to enum: always (default) or structs-only.
1621
--enumnamespaces structs-only
1722

Tests/MockingTests/TestHelpers/TestBarrier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ actor TestBarrier {
3131
// MARK: Properties
3232

3333
/// The default number of tasks used when no task count is specified.
34-
static let defaultTaskCount = 1000
34+
static let defaultTaskCount = 1_000
3535

3636
/// The continuations waiting to be resumed once all tasks arrive.
3737
private var continuations: [CheckedContinuation<Void, Never>] = []

0 commit comments

Comments
 (0)