-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy path.swiftformat
11 lines (9 loc) · 1.13 KB
/
.swiftformat
1
2
3
4
5
6
7
8
9
10
11
# Config
--ranges no-space
--header strip
# Enabled rules
--rules anyObjectProtocol,blankLinesAroundMark,blankLinesAtEndOfScope,blankLinesAtStartOfScope,blankLinesBetweenScopes,duplicateImports,elseOnSameLine,emptyBraces,fileHeader,indent,isEmpty,leadingDelimiters,linebreakAtEndOfFile,ranges,redundantBackticks,redundantBreak,redundantFileprivate,redundantGet,redundantInit,redundantLet,redundantLetError,redundantNilInit,redundantObjc,redundantParens,redundantPattern,redundantRawValues,redundantReturn,redundantVoidReturnType,semicolons,sortedImports,spaceAroundBraces,spaceAroundBrackets,spaceAroundComments,spaceAroundGenerics,spaceAroundOperators,spaceAroundParens,spaceInsideBraces,spaceInsideBrackets,spaceInsideComments,spaceInsideGenerics,spaceInsideParens,strongOutlets,strongifiedSelf,todos,trailingClosures,trailingCommas,trailingSpace,typeSugar,void,wrapArguments,yodaConditions
# The rest of rules (disabled for now)
# andOperator,braces,consecutiveBlankLines,consecutiveSpaces,hoistPatternLet,linebreaks,numberFormatting,redundantExtensionACL,redundantSelf,specifiers,unusedArguments
--exclude **/Reachability.swift
--exclude Examples/Carthage