Skip to content

Commit 9712635

Browse files
authored
Apply standard formatting. (#88)
* Apply standard formatting. * Fix linting.
1 parent c45677f commit 9712635

File tree

73 files changed

+4453
-2261
lines changed

Some content is hidden

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

73 files changed

+4453
-2261
lines changed

.swift-format

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

.swiftformat

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

Package.swift

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,33 +37,42 @@ let package = Package(
3737
products: [
3838
.library(
3939
name: "DynamoDBTables",
40-
targets: ["DynamoDBTables"]),
40+
targets: ["DynamoDBTables"]
41+
)
4142
],
4243
dependencies: [
4344
.package(url: "https://github.com/awslabs/aws-sdk-swift.git", from: "1.0.0"),
4445
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
45-
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0" ..< "3.0.0"),
46+
.package(url: "https://github.com/apple/swift-metrics.git", "1.0.0"..<"3.0.0"),
4647
.package(url: "https://github.com/apple/swift-syntax", from: "601.0.0"),
4748
.package(url: "https://github.com/tachyonics/smockable", from: "0.4.0"),
4849
],
4950
targets: [
50-
.macro(name: "DynamoDBTablesMacros", dependencies: [
51-
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
52-
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
53-
]),
51+
.macro(
52+
name: "DynamoDBTablesMacros",
53+
dependencies: [
54+
.product(name: "SwiftSyntaxMacros", package: "swift-syntax"),
55+
.product(name: "SwiftCompilerPlugin", package: "swift-syntax"),
56+
]
57+
),
5458
.target(
55-
name: "DynamoDBTables", dependencies: [
59+
name: "DynamoDBTables",
60+
dependencies: [
5661
.target(name: "DynamoDBTablesMacros"),
5762
.product(name: "Logging", package: "swift-log"),
5863
.product(name: "Metrics", package: "swift-metrics"),
5964
.product(name: "AWSDynamoDB", package: "aws-sdk-swift"),
6065
.product(name: "Smockable", package: "smockable"),
6166
],
62-
swiftSettings: swiftSettings),
67+
swiftSettings: swiftSettings
68+
),
6369
.testTarget(
64-
name: "DynamoDBTablesTests", dependencies: [
70+
name: "DynamoDBTablesTests",
71+
dependencies: [
6572
.target(name: "DynamoDBTables"),
6673
.product(name: "SwiftSyntaxMacrosTestSupport", package: "swift-syntax"),
6774
],
68-
swiftSettings: swiftSettings),
69-
])
75+
swiftSettings: swiftSettings
76+
),
77+
]
78+
)

0 commit comments

Comments
 (0)