mirror of
https://github.com/jellyfin/Swiftfin.git
synced 2024-11-27 00:00:37 +00:00
9e119017db
* Add compiler flag for long type checking warning * duplicate file references. * Reduce expression complexity * Replace deprecated SwiftLint rule * Bump SwiftFormat version * Bump Swift version of SwiftLint
51 lines
1.4 KiB
Plaintext
51 lines
1.4 KiB
Plaintext
# version: 0.54.6
|
|
|
|
--swiftversion 5.6
|
|
|
|
--tabwidth 4
|
|
--xcodeindentation enabled
|
|
--semicolons never
|
|
--stripunusedargs closure-only
|
|
--maxwidth 140
|
|
--assetliterals visual-width
|
|
--wraparguments before-first
|
|
--wrapparameters before-first
|
|
--wrapcollections before-first
|
|
--wrapconditions after-first
|
|
--funcattributes prev-line
|
|
--typeattributes prev-line
|
|
--computedvarattrs prev-line
|
|
--storedvarattrs prev-line
|
|
--trailingclosures
|
|
--shortoptionals "always"
|
|
--ifdef no-indent
|
|
|
|
--enable isEmpty, \
|
|
leadingDelimiters, \
|
|
wrapEnumCases, \
|
|
typeSugar, \
|
|
void, \
|
|
trailingSpace, \
|
|
spaceInsideParens, \
|
|
spaceInsideGenerics, \
|
|
spaceInsideComments, \
|
|
spaceInsideBrackets, \
|
|
spaceInsideBraces, \
|
|
blankLinesAroundMark, \
|
|
redundantLet, \
|
|
redundantInit, \
|
|
blankLinesAroundMark
|
|
|
|
--disable strongOutlets, \
|
|
yodaConditions, \
|
|
blankLinesAtStartOfScope,\
|
|
andOperator, \
|
|
redundantFileprivate, \
|
|
redundantSelf, \
|
|
redundantClosure, \
|
|
redundantType
|
|
|
|
--exclude Shared/Strings/Strings.swift, fastlane/
|
|
|
|
--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"
|