-
Notifications
You must be signed in to change notification settings - Fork 290
Expand file tree
/
Copy path.swiftformat
More file actions
84 lines (80 loc) · 2.33 KB
/
.swiftformat
File metadata and controls
84 lines (80 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#
# .swiftformat
# mas
#
# SwiftFormat 0.61.0
#
# Disabled rules (enabled by default)
--disable hoistAwait
--disable hoistTry
# Disabled rules (disabled by default)
#--enable blankLineAfterSwitchCase
#--enable markTypes
#--enable preferExplicitFalse
#--enable testSuiteAccessControl
#--enable wrapMultilineConditionalAssignment
# Enabled rules (disabled by default)
--enable acronyms
--enable blankLinesAfterGuardStatements
--enable blockComments
--enable isEmpty
--enable noExplicitOwnership
--enable noGuardInTests
--enable organizeDeclarations
--enable preferFinalClasses
--enable preferSwiftStringAPI
--enable preferSwiftTesting
--enable privateStateVariables
--enable propertyTypes
--enable singlePropertyPerLine
--enable sortSwitchCases
--enable unusedPrivateDeclarations
--enable urlMacro
--enable validateTestCases
--enable wrapCaseBodies
--enable wrapConditionalBodies
--enable wrapEnumCases
--enable wrapMultilineFunctionChains
--enable wrapSwitchCases
# Rule options
--acronyms ADAM,ADI,AE,ANSI,API,CD,CEO,CF,CI,CK,CPU,DAV,DOS,DS,DSID,DVD,EOF,FAQ,FAT,FD,FTP,GB,GID,GUI,GUID,HTML,HTTP,HTTPS,ID,IFS,ISO,JSON,KB,MAS,MD,MDM,MDS,MIB,MIT,NS,OS,OSX,PDF,PR,QL,SB,SDK,SHA,SS,SSH,STDQ,STDRDL,UDF,UI,UID,URL,US,UTF,UUID,VPP,XML,XPC,YAML
--allow-partial-wrapping false
--complex-attributes prev-line
--computed-var-attributes prev-line
--conditional-assignment always
--exponent-grouping enabled
--file-macro "#fileID"
--fraction-grouping enabled
--func-attributes prev-line
--header //\n// {file}\n// mas\n//\n// Copyright © {created.year} mas-cli\. All rights reserved\.\n//
--hex-literal-case lowercase
--ifdef no-indent
--import-grouping alpha
--indent tab
--indent-strings true
--line-after-marks false
--mark-categories false
--max-width 120
--organization-mode type
--organize-types actor,class,enum,extension,struct
--property-types inferred
--ranges no-space
--redundant-async always
--redundant-throws always
--semicolons never
--short-optionals always
--single-line-for-each convert
--stored-var-attributes prev-line
--suite-name-format standard-identifiers
--tab-width 2
--timezone utc
--type-attributes prev-line
--type-body-marks remove
--wrap-arguments before-first
--wrap-collections before-first
--wrap-conditions before-first
--wrap-effects never
--wrap-parameters before-first
--wrap-return-type never
--wrap-ternary before-operators
--wrap-type-aliases before-first