Created
September 16, 2021 13:20
-
-
Save icanswiftabit/569f21a947508c9f764aee0c5af6e911 to your computer and use it in GitHub Desktop.
My set of rules for swift format https://github.com/nicklockwood/SwiftFormat/issues/995#issuecomment-916755543
This file contains hidden or 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
--allman false | |
--assetliterals visual-width | |
--beforemarks | |
--binarygrouping 4,8 | |
--categorymark "MARK: %c" | |
--classthreshold 0 | |
--closingparen balanced | |
--commas always | |
--conflictmarkers reject | |
--decimalgrouping 3,6 | |
--elseposition same-line | |
--emptybraces no-space | |
--enumthreshold 0 | |
--exponentcase lowercase | |
--exponentgrouping disabled | |
--extensionacl on-extension | |
--extensionlength 0 | |
--extensionmark "MARK: - %t + %c" | |
--fractiongrouping disabled | |
--fragment false | |
--funcattributes preserve | |
--groupedextension "MARK: %c" | |
--guardelse auto | |
--header ignore | |
--hexgrouping 4,8 | |
--hexliteralcase uppercase | |
--ifdef indent | |
--importgrouping alpha | |
--indent 4 | |
--indentcase false | |
--lifecycle | |
--linebreaks lf | |
--markextensions always | |
--marktypes always | |
--maxwidth 120 | |
--modifierorder | |
--nevertrailing | |
--nospaceoperators | |
--nowrapoperators | |
--octalgrouping 4,8 | |
--operatorfunc spaced | |
--organizetypes actor,class,enum,struct | |
--patternlet hoist | |
--ranges spaced | |
--redundanttype inferred | |
--self remove | |
--selfrequired | |
--semicolons inline | |
--shortoptionals always | |
--smarttabs enabled | |
--stripunusedargs always | |
--structthreshold 0 | |
--tabwidth unspecified | |
--trailingclosures | |
--trimwhitespace always | |
--typeattributes preserve | |
--typemark "MARK: - %t" | |
--varattributes preserve | |
--voidtype void | |
--wraparguments preserve | |
--wrapcollections preserve | |
--wrapconditions preserve | |
--wrapparameters preserve | |
--wrapreturntype preserve | |
--xcodeindentation disabled | |
--yodaswap always | |
--disable blankLinesAroundMark,blankLinesBetweenScopes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment