This repository has been archived by the owner on Sep 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(swiftformat): added .swiftformat
- Loading branch information
1 parent
4029284
commit 780dc7e
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |