Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit c2f9d3b

Browse files
authored
Add '.swift-format'. (#374)
Add a `swift-format` configuration. ```json { "version": 1, "lineLength": 100, "indentation": { "spaces": 4 }, "maximumBlankLines": 1, "respectsExistingLineBreaks": true, "blankLineBetweenMembers": { "ignoreSingleLineProperties": true }, "lineBreakBeforeControlFlowKeywords": false, "lineBreakBeforeEachArgument": false } ``` Note: `swift-format` built using swift:master currently has weird behavior on functions with tensorflow-branch-only attributes such as `@differentiable`. Use with caution.
1 parent 6d525f5 commit c2f9d3b

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.swift-format

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"version": 1,
3+
"lineLength": 100,
4+
"indentation": {
5+
"spaces": 4
6+
},
7+
"maximumBlankLines": 1,
8+
"respectsExistingLineBreaks": true,
9+
"blankLineBetweenMembers": {
10+
"ignoreSingleLineProperties": true
11+
},
12+
"lineBreakBeforeControlFlowKeywords": false,
13+
"lineBreakBeforeEachArgument": false
14+
}

0 commit comments

Comments
 (0)