Skip to content

Commit a78f1e6

Browse files
committed
Formatting
1 parent 4c3ea81 commit a78f1e6

File tree

100 files changed

+12145
-11465
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+12145
-11465
lines changed

.swift-format

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
{
2+
"fileScopedDeclarationPrivacy" : {
3+
"accessLevel" : "private"
4+
},
5+
"indentation" : {
6+
"spaces" : 4
7+
},
8+
"indentConditionalCompilationBlocks" : false,
9+
"indentSwitchCaseLabels" : false,
10+
"lineBreakAroundMultilineExpressionChainComponents" : false,
11+
"lineBreakBeforeControlFlowKeywords" : false,
12+
"lineBreakBeforeEachArgument" : true,
13+
"lineBreakBeforeEachGenericRequirement" : true,
14+
"lineLength" : 120,
15+
"maximumBlankLines" : 1,
16+
"prioritizeKeepingFunctionOutputTogether" : true,
17+
"respectsExistingLineBreaks" : true,
18+
"rules" : {
19+
"AllPublicDeclarationsHaveDocumentation" : false,
20+
"AlwaysUseLowerCamelCase" : false,
21+
"AmbiguousTrailingClosureOverload" : true,
22+
"BeginDocumentationCommentWithOneLineSummary" : false,
23+
"DoNotUseSemicolons" : true,
24+
"DontRepeatTypeInStaticProperties" : true,
25+
"FileScopedDeclarationPrivacy" : true,
26+
"FullyIndirectEnum" : true,
27+
"GroupNumericLiterals" : true,
28+
"IdentifiersMustBeASCII" : true,
29+
"NeverForceUnwrap" : false,
30+
"NeverUseForceTry" : false,
31+
"NeverUseImplicitlyUnwrappedOptionals" : false,
32+
"NoAccessLevelOnExtensionDeclaration" : true,
33+
"NoAssignmentInExpressions" : true,
34+
"NoBlockComments" : true,
35+
"NoCasesWithOnlyFallthrough" : true,
36+
"NoEmptyTrailingClosureParentheses" : true,
37+
"NoLabelsInCasePatterns" : false,
38+
"NoLeadingUnderscores" : false,
39+
"NoParensAroundConditions" : true,
40+
"NoVoidReturnOnFunctionSignature" : true,
41+
"OneCasePerLine" : true,
42+
"OneVariableDeclarationPerLine" : true,
43+
"OnlyOneTrailingClosureArgument" : true,
44+
"OrderedImports" : false,
45+
"ReturnVoidInsteadOfEmptyTuple" : true,
46+
"UseEarlyExits" : true,
47+
"UseLetInEveryBoundCaseVariable" : false,
48+
"UseShorthandTypeNames" : true,
49+
"UseSingleLinePropertyGetter" : false,
50+
"UseSynthesizedInitializer" : false,
51+
"UseTripleSlashForDocumentationComments" : true,
52+
"UseWhereClausesInForLoops" : false,
53+
"ValidateDocumentationComments" : false
54+
},
55+
"spacesAroundRangeFormationOperators" : false,
56+
"tabWidth" : 4,
57+
"version" : 1
58+
}

.swiftformat

Lines changed: 0 additions & 25 deletions
This file was deleted.

Package.swift

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -3,59 +3,59 @@
33
import PackageDescription
44

55
let package = Package(
6-
name: "swift-async-algorithms",
7-
platforms: [
8-
.macOS("10.15"),
9-
.iOS("13.0"),
10-
.tvOS("13.0"),
11-
.watchOS("6.0")
12-
],
13-
products: [
14-
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
15-
],
16-
targets: [
17-
.target(
18-
name: "AsyncAlgorithms",
19-
dependencies: [
20-
.product(name: "OrderedCollections", package: "swift-collections"),
21-
.product(name: "DequeModule", package: "swift-collections"),
22-
],
23-
swiftSettings: [
24-
.enableExperimentalFeature("StrictConcurrency=complete"),
25-
]
26-
),
27-
.target(
28-
name: "AsyncSequenceValidation",
29-
dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"],
30-
swiftSettings: [
31-
.enableExperimentalFeature("StrictConcurrency=complete"),
32-
]
33-
),
34-
.systemLibrary(name: "_CAsyncSequenceValidationSupport"),
35-
.target(
36-
name: "AsyncAlgorithms_XCTest",
37-
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"],
38-
swiftSettings: [
39-
.enableExperimentalFeature("StrictConcurrency=complete"),
40-
]
41-
),
42-
.testTarget(
43-
name: "AsyncAlgorithmsTests",
44-
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation", "AsyncAlgorithms_XCTest"],
45-
swiftSettings: [
46-
.enableExperimentalFeature("StrictConcurrency=complete"),
47-
]
48-
),
49-
]
6+
name: "swift-async-algorithms",
7+
platforms: [
8+
.macOS("10.15"),
9+
.iOS("13.0"),
10+
.tvOS("13.0"),
11+
.watchOS("6.0"),
12+
],
13+
products: [
14+
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"])
15+
],
16+
targets: [
17+
.target(
18+
name: "AsyncAlgorithms",
19+
dependencies: [
20+
.product(name: "OrderedCollections", package: "swift-collections"),
21+
.product(name: "DequeModule", package: "swift-collections"),
22+
],
23+
swiftSettings: [
24+
.enableExperimentalFeature("StrictConcurrency=complete")
25+
]
26+
),
27+
.target(
28+
name: "AsyncSequenceValidation",
29+
dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"],
30+
swiftSettings: [
31+
.enableExperimentalFeature("StrictConcurrency=complete")
32+
]
33+
),
34+
.systemLibrary(name: "_CAsyncSequenceValidationSupport"),
35+
.target(
36+
name: "AsyncAlgorithms_XCTest",
37+
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"],
38+
swiftSettings: [
39+
.enableExperimentalFeature("StrictConcurrency=complete")
40+
]
41+
),
42+
.testTarget(
43+
name: "AsyncAlgorithmsTests",
44+
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation", "AsyncAlgorithms_XCTest"],
45+
swiftSettings: [
46+
.enableExperimentalFeature("StrictConcurrency=complete")
47+
]
48+
),
49+
]
5050
)
5151

5252
if Context.environment["SWIFTCI_USE_LOCAL_DEPS"] == nil {
53-
package.dependencies += [
54-
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
55-
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
56-
]
53+
package.dependencies += [
54+
.package(url: "https://github.com/apple/swift-collections.git", from: "1.1.0"),
55+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
56+
]
5757
} else {
58-
package.dependencies += [
59-
.package(path: "../swift-collections"),
60-
]
58+
package.dependencies += [
59+
.package(path: "../swift-collections")
60+
]
6161
}

[email protected]

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,40 @@
33
import PackageDescription
44

55
let package = Package(
6-
name: "swift-async-algorithms",
7-
platforms: [
8-
.macOS("10.15"),
9-
.iOS("13.0"),
10-
.tvOS("13.0"),
11-
.watchOS("6.0")
12-
],
13-
products: [
14-
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
15-
.library(name: "AsyncSequenceValidation", targets: ["AsyncSequenceValidation"]),
16-
.library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"]),
17-
.library(name: "AsyncAlgorithms_XCTest", targets: ["AsyncAlgorithms_XCTest"]),
18-
],
19-
dependencies: [
20-
.package(url: "https://github.com/apple/swift-collections.git", from: "1.0.4"),
21-
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
22-
],
23-
targets: [
24-
.target(
25-
name: "AsyncAlgorithms",
26-
dependencies: [.product(name: "Collections", package: "swift-collections")]
27-
),
28-
.target(
29-
name: "AsyncSequenceValidation",
30-
dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"]),
31-
.systemLibrary(name: "_CAsyncSequenceValidationSupport"),
32-
.target(
33-
name: "AsyncAlgorithms_XCTest",
34-
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"]),
35-
.testTarget(
36-
name: "AsyncAlgorithmsTests",
37-
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation", "AsyncAlgorithms_XCTest"]),
38-
]
6+
name: "swift-async-algorithms",
7+
platforms: [
8+
.macOS("10.15"),
9+
.iOS("13.0"),
10+
.tvOS("13.0"),
11+
.watchOS("6.0"),
12+
],
13+
products: [
14+
.library(name: "AsyncAlgorithms", targets: ["AsyncAlgorithms"]),
15+
.library(name: "AsyncSequenceValidation", targets: ["AsyncSequenceValidation"]),
16+
.library(name: "_CAsyncSequenceValidationSupport", type: .static, targets: ["AsyncSequenceValidation"]),
17+
.library(name: "AsyncAlgorithms_XCTest", targets: ["AsyncAlgorithms_XCTest"]),
18+
],
19+
dependencies: [
20+
.package(url: "https://github.com/apple/swift-collections.git", from: "1.0.4"),
21+
.package(url: "https://github.com/apple/swift-docc-plugin", from: "1.0.0"),
22+
],
23+
targets: [
24+
.target(
25+
name: "AsyncAlgorithms",
26+
dependencies: [.product(name: "Collections", package: "swift-collections")]
27+
),
28+
.target(
29+
name: "AsyncSequenceValidation",
30+
dependencies: ["_CAsyncSequenceValidationSupport", "AsyncAlgorithms"]
31+
),
32+
.systemLibrary(name: "_CAsyncSequenceValidationSupport"),
33+
.target(
34+
name: "AsyncAlgorithms_XCTest",
35+
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation"]
36+
),
37+
.testTarget(
38+
name: "AsyncAlgorithmsTests",
39+
dependencies: ["AsyncAlgorithms", "AsyncSequenceValidation", "AsyncAlgorithms_XCTest"]
40+
),
41+
]
3942
)

0 commit comments

Comments
 (0)