Skip to content

Commit ba8ed92

Browse files
committed
Updated .swiftformat
1 parent f75cda1 commit ba8ed92

2 files changed

Lines changed: 24 additions & 75 deletions

File tree

.swiftformat

Lines changed: 22 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,22 @@
1-
--acronyms ID,URL,UUID
2-
--allman false
3-
--assetliterals visual-width
4-
--beforemarks
5-
--binarygrouping 8,8
6-
--categorymark "MARK: %c"
7-
--classthreshold 0
8-
--closingparen balanced
9-
--closurevoid remove
10-
--commas inline
11-
--conflictmarkers reject
12-
--decimalgrouping ignore
13-
--elseposition same-line
14-
--emptybraces spaced
15-
--enumthreshold 0
16-
--exponentcase lowercase
17-
--exponentgrouping disabled
18-
--extensionacl on-declarations
19-
--extensionlength 0
20-
--extensionmark "MARK: - %t + %c"
21-
--fractiongrouping disabled
22-
--fragment false
23-
--funcattributes prev-line
24-
--groupedextension "MARK: %c"
25-
--guardelse auto
26-
--header "\n {file}\n swift-timecode • https://github.com/orchetect/swift-timecode\n © 2020-{year} Steffan Andrews • Licensed under MIT License\n"
27-
--hexgrouping 4,8
28-
--hexliteralcase uppercase
29-
--ifdef no-indent
30-
--importgrouping alpha
31-
--indent 4
32-
--indentcase false
33-
--indentstrings true
34-
--lifecycle
35-
--lineaftermarks true
36-
--linebreaks lf
37-
--markcategories true
38-
--markextensions always
39-
--marktypes always
40-
--maxwidth 140
41-
--modifierorder
42-
--nevertrailing
43-
--nospaceoperators
44-
--nowrapoperators
45-
--octalgrouping 4,8
46-
--operatorfunc spaced
47-
--organizetypes actor,class,enum,struct
48-
--patternlet hoist
49-
--ranges spaced
50-
--redundanttype infer-locals-only
51-
--self remove
52-
--selfrequired
53-
--semicolons inline
54-
--shortoptionals always
55-
--smarttabs enabled
56-
--stripunusedargs always
57-
--structthreshold 0
58-
--tabwidth unspecified
59-
--trailingclosures
60-
--trimwhitespace nonblank-lines
61-
--typeattributes preserve
62-
--typemark "MARK: - %t"
63-
--varattributes preserve
64-
--voidtype void
65-
--wraparguments before-first
66-
--wrapcollections before-first
67-
--wrapconditions after-first
68-
--wrapparameters before-first
69-
--wrapreturntype preserve
70-
--wrapternary before-operators
71-
--wraptypealiases before-first
72-
--xcodeindentation enabled
73-
--yodaswap always
74-
--disable blankLinesAroundMark,consecutiveSpaces,preferKeyPath,redundantParens,sortDeclarations,sortedImports,unusedArguments
75-
--enable blankLinesBetweenImports,blockComments,isEmpty,wrapEnumCases
1+
--header "\n {file}\n swift-timecode • https://github.com/orchetect/swift-timecode\n © {year} Steffan Andrews • Licensed under MIT License\n"
2+
--allow-partial-wrapping false
3+
--binary-grouping 8,8
4+
--call-site-paren balanced
5+
--complex-attributes prev-line
6+
--computed-var-attributes prev-line
7+
--empty-braces spaced
8+
--extension-acl on-declarations
9+
--func-attributes prev-line
10+
--ifdef preserve
11+
--indent-strings true
12+
--max-width 140
13+
--property-types explicit
14+
--stored-var-attributes preserve
15+
--strip-unused-args unnamed-only
16+
--trailing-commas never
17+
--type-attributes prev-line
18+
--wrap-arguments before-first
19+
--wrap-collections before-first
20+
--wrap-parameters before-first
21+
--disable docComments,modifierOrder,modifiersOnSameLine,redundantMemberwiseInit,redundantPattern,redundantRawValues,redundantSendable,redundantVariable,unusedArguments
22+
--enable wrapMultilineFunctionChains

Tests/.swiftformat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--disable redundantSwiftTestingSuite,swiftTestingTestCaseNames
2+
--enable preferSwiftTesting

0 commit comments

Comments
 (0)