Swiftfin/.swiftformat

51 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

# version: 0.54.6
--swiftversion 5.6
2022-01-10 19:28:03 +00:00
--tabwidth 4
--xcodeindentation enabled
--semicolons never
--stripunusedargs closure-only
--maxwidth 140
--assetliterals visual-width
--wraparguments before-first
--wrapparameters before-first
2022-01-10 19:28:03 +00:00
--wrapcollections before-first
--wrapconditions after-first
--funcattributes prev-line
--typeattributes prev-line
--computedvarattrs prev-line
--storedvarattrs prev-line
2022-01-10 19:28:03 +00:00
--trailingclosures
--shortoptionals "always"
--ifdef no-indent
2022-01-10 19:28:03 +00:00
--enable isEmpty, \
leadingDelimiters, \
wrapEnumCases, \
typeSugar, \
void, \
trailingSpace, \
spaceInsideParens, \
spaceInsideGenerics, \
spaceInsideComments, \
spaceInsideBrackets, \
spaceInsideBraces, \
blankLinesAroundMark, \
redundantLet, \
redundantInit, \
blankLinesAroundMark
--disable strongOutlets, \
yodaConditions, \
blankLinesAtStartOfScope,\
andOperator, \
redundantFileprivate, \
2022-01-10 20:59:10 +00:00
redundantSelf, \
redundantClosure, \
redundantType
2022-01-10 19:28:03 +00:00
2024-06-10 04:08:43 +00:00
--exclude Shared/Strings/Strings.swift, fastlane/
2022-01-10 19:28:03 +00:00
--header "\nSwiftfin is subject to the terms of the Mozilla Public\nLicense, v2.0. If a copy of the MPL was not distributed with this\nfile, you can obtain one at https://mozilla.org/MPL/2.0/.\n\nCopyright (c) {year} Jellyfin & Jellyfin Contributors\n"