forked from spothero/BarcodeHero-iOS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.swiftformat
66 lines (50 loc) · 1.6 KB
/
.swiftformat
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
# Updated for v0.40.11
#---------------------#
# SwiftFormat Options #
#---------------------#
--swiftversion 5.2
#-------------------#
# Whitelisted Rules #
#-------------------#
# Use this section to opt-in to rules explicitly
# When rules in this list are enabled, no other rules will be run
# --rules redundantSelf
# --rules trailingSpace
#--------------------#
# Rule Configuration #
#--------------------#
# makes sure the self. prefix is added where appropriate
--self insert
# only strips unused arguments (replacing with _) in closures, not methods
--stripunusedargs closure-only
# sets the header block to supplied text
--header "Copyright © {year} SpotHero, Inc. All rights reserved."
# only trims whitespace on nonblank-lines to avoid xcode inconsistencies
--trimwhitespace nonblank-lines
# this removes the underscore (_) separation in large numbers
--binarygrouping none
--decimalgrouping none
--hexgrouping none
--octalgrouping none
--exponentgrouping disabled
--fractiongrouping disabled
#----------------#
# Disabled Rules #
#----------------#
# Enforces consistent ordering for member specifiers
# Disabled because this rule is non-configurable
--disable specifiers
# Removes return within closures as well as the new Swift 5 implicit return
# Disabled because this rule is non-configurable
--disable redundantReturn
#-----------------#
# File Exclusions #
#-----------------#
--exclude Pods
--exclude .build
--exclude .swiftpm
--exclude Package.swift
--exclude */Package.swift
--exclude Tests/LinuxMain.swift
--exclude "Tests/*/XCTestManifests.swift"
--exclude "**/*/*+CoreDataProperties.swift"