Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
feat(swiftformat): added .swiftformat
Browse files Browse the repository at this point in the history
  • Loading branch information
migueltorcha committed Sep 30, 2022
1 parent 4029284 commit 780dc7e
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# file options

--exclude Tests/XCTestManifests.swift,Snapshots,DerivedData

# format options

--allman false
--binarygrouping 4,8
--commas always
--comments indent
--decimalgrouping 3,6
--elseposition same-line
--guardelse same-line
--empty void
--exponentcase lowercase
--exponentgrouping disabled
--fractiongrouping disabled
--header ignore
--hexgrouping 4,8
--hexliteralcase uppercase
--ifdef indent
--indent 4
--indentcase false
--importgrouping testable-bottom
--linebreaks lf
--octalgrouping 4,8
--operatorfunc spaced
--patternlet hoist
--ranges spaced
--self remove
--semicolons never
--stripunusedargs always
--trimwhitespace always
--wraparguments preserve
--wrapcollections preserve
--maxwidth 115
--redundanttype explicit

# rules

--enable isEmpty
--disable wrapMultilineStatementBraces

0 comments on commit 780dc7e

Please sign in to comment.