-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.swiftlint.yml
60 lines (58 loc) · 1.38 KB
/
.swiftlint.yml
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
disabled_rules: # Rule identifiers to exclude from running
- line_length # Documentation can exceed line lengths
- identifier_name
- unused_setter_value
#temporary exclusions
- cyclomatic_complexity
- function_body_length
- type_body_length
- file_length
- force_cast
- force_unwrapping
- object_literal
- empty_count
- force_try
- private_outlet
- valid_ibinspectable
#end temporary exclusions
opt_in_rules:
#- empty_count
#- force_unwrapping
- explicit_init
- first_where
#- object_literal
- operator_usage_whitespace
- overridden_super_call
- private_outlet
- prohibited_super_call
- redundant_nil_coalescing
- switch_case_on_newline
force_cast: error
force_try: error
force_unwrapping:
severity: error
operator_usage_whitespace: error
syntactic_sugar: error
trailing_comma:
severity: error
trailing_newline: error
trailing_semicolon: error
trailing_whitespace: error
unused_closure_parameter: error
unused_optional_binding:
severity: error
vertical_whitespace:
severity: error
object_literal:
color_literal: false
trailing_whitespace:
ignores_empty_lines: true # This is such a hassle to do right and adds nothing
excluded:
- ${SRCROOT}/SDWebImage
- ${SRCROOT}/TTTAttributedLabel
- ${SRCROOT}/Mixpanel
- ${SRCROOT}/Trekker
- ${SRCROOT}/Ocarina
- ${SRCROOT}/AssetPickerController
- ${SRCROOT}/AWKGallery
- ${SRCROOT}/JLRoutes