Skip to content

Commit

Permalink
.swiftformat config added
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslavyaroslav committed Dec 28, 2024
1 parent f02b243 commit 9a0ca56
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# rules
--enable isEmpty
--enable redundantFileprivate
--enable redundantReturn
--enable redundantBackticks
--enable redundantBreak
--enable redundantClosure
--enable redundantExtensionACL
--enable organizeDeclarations
--enable redundantFileprivate
--enable redundantGet
--enable redundantInit
--enable redundantInternal
--enable redundantLet
--enable redundantLetError
--enable redundantNilInit
--enable redundantObjc
--enable redundantOptionalBinding
--enable redundantParens
--enable redundantPattern
--enable redundantStaticSelf
--enable redundantVoidReturnType
--disable redundantRawValues
--disable sortImports
--disable andOperator
--disable wrapMultilineStatementBraces
--disable extensionAccessControl

# format options
--indentcase true
--trimwhitespace nonblank-lines
--maxwidth 130
--commas inline
--comments indent
--decimalgrouping 3,5
--exponentcase lowercase
--exponentgrouping disabled
--extensionacl on-declarations
--fractiongrouping disabled
--ifdef no-indent
--importgrouping testable-top
--operatorfunc no-space
--nospaceoperators ..<, ...
--selfrequired validate
--stripunusedargs closure-only
--wraparguments preserve
--wrapcollections preserve
--wrapparameters preserve

# organizeDeclarations
--markcategories false

0 comments on commit 9a0ca56

Please sign in to comment.