Use SwiftFormat version 0.47.x

This commit is contained in:
Danny Moesch 2020-11-07 12:06:28 +01:00 committed by Mingshen Sun
parent e8389eb262
commit 49c6b25611
18 changed files with 69 additions and 49 deletions

View file

@ -22,6 +22,8 @@
duplicateImports, \
elseOnSameLine, \
emptyBraces, \
enumNamespaces, \
extensionAccessControl, \
fileHeader, \
hoistPatternLet, \
indent, \
@ -31,6 +33,7 @@
linebreakAtEndOfFile, \
linebreaks, \
modifierOrder, \
# markTypes, \
numberFormatting, \
# organizeDeclarations, \
preferKeyPath, \
@ -53,6 +56,7 @@
redundantVoidReturnType, \
semicolons, \
sortedImports, \
sortedSwitchCases, \
spaceAroundBraces, \
spaceAroundBrackets, \
spaceAroundComments, \
@ -88,6 +92,10 @@
--allman false
### Color/image literal width. "actual-width" or "visual-width"
--assetliterals visual-width
### Binary grouping,threshold (default: 4,8) or "none", "ignore"
--binarygrouping 4,8
@ -116,6 +124,10 @@
--exponentgrouping disabled
### Place ACL "on-extension" (default) or "on-declarations"
--extensionacl on-extension
### Group digits after '.': "enabled" or "disabled" (default)
--fractiongrouping disabled
@ -244,10 +256,18 @@
--wrapcollections preserve
### Wrap conditions: "before-first", "after-first", "preserve"
--wrapconditions preserve
### Wrap func params: "before-first", "after-first", "preserve"
--wrapparameters preserve
### Wrap return type: "if-multiline", "preserve" (default)
--wrapreturntype preserve
### Xcode indent guard/enum: "enabled" or "disabled" (default)
--xcodeindentation disabled