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