Update SwiftFormat to version 0.50.x (#577)
This commit is contained in:
parent
5c62d4a3e3
commit
b6be913017
2 changed files with 10 additions and 1 deletions
|
|
@ -15,6 +15,7 @@
|
|||
andOperator, \
|
||||
anyObjectProtocol, \
|
||||
assertionFailures, \
|
||||
blankLineAfterImports, \
|
||||
blankLinesAroundMark, \
|
||||
blankLinesAtEndOfScope, \
|
||||
blankLinesAtStartOfScope, \
|
||||
|
|
@ -30,6 +31,7 @@
|
|||
enumNamespaces, \
|
||||
extensionAccessControl, \
|
||||
fileHeader, \
|
||||
# genericExtensions, \
|
||||
hoistPatternLet, \
|
||||
indent, \
|
||||
initCoderUnavailable, \
|
||||
|
|
@ -40,6 +42,7 @@
|
|||
modifierOrder, \
|
||||
# markTypes, \
|
||||
numberFormatting, \
|
||||
# opaqueGenericParameters, \
|
||||
# organizeDeclarations, \
|
||||
preferDouble, \
|
||||
preferKeyPath, \
|
||||
|
|
@ -54,6 +57,7 @@
|
|||
redundantLetError, \
|
||||
redundantNilInit, \
|
||||
redundantObjc, \
|
||||
# redundantOptionalBinding, \
|
||||
redundantParens, \
|
||||
redundantPattern, \
|
||||
redundantRawValues, \
|
||||
|
|
@ -91,6 +95,7 @@
|
|||
wrapConditionalBodies, \
|
||||
# wrapEnumCases, \
|
||||
# wrapMultilineStatementBraces, \
|
||||
wrapSingleLineComments, \
|
||||
# wrapSwitchCases, \
|
||||
yodaConditions
|
||||
|
||||
|
|
@ -132,6 +137,10 @@
|
|||
|
||||
--emptybraces no-space
|
||||
|
||||
### Enum namespaces: "always" (default) or "structs-only"
|
||||
|
||||
--enumnamespaces always
|
||||
|
||||
### Case of 'e' in numbers: "lowercase" or "uppercase" (default)
|
||||
|
||||
--exponentcase lowercase
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
export PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}"
|
||||
SWIFTFORMAT_VERSION="0.49.*"
|
||||
SWIFTFORMAT_VERSION="0.50.*"
|
||||
|
||||
if [[ "${CI}" == "true" ]]; then
|
||||
echo "Running in a Continuous Integration environment. Formatting is skipped."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue