-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint.yml
More file actions
109 lines (95 loc) · 1.87 KB
/
.swiftlint.yml
File metadata and controls
109 lines (95 loc) · 1.87 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# SwiftLint Configuration for Treachery-iOS
included:
- Treachery-iOS/Treachery-iOS
- Treachery-iOS/Treachery-iOSTests
- Treachery-iOS/Treachery-iOSUITests
excluded:
- Treachery-iOS/Treachery-iOS.xcodeproj
- Treachery-iOS/Treachery-iOS/Treachery-iOS/GoogleService-Info.plist
- .build
- DerivedData
# Rules
disabled_rules:
- trailing_comma
- todo
- implicit_optional_initialization
- unused_closure_parameter
- static_over_final_class
- empty_string
opt_in_rules:
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_filter_count
- contains_over_first_not_nil
- empty_collection_literal
- empty_count
- empty_string
- enum_case_associated_values_count
- fatal_error_message
- first_where
- last_where
- literal_expression_end_indentation
- operator_usage_whitespace
- overridden_super_call
- prefer_self_in_static_references
- prefer_self_type_over_type_of_self
- private_action
- private_outlet
- redundant_nil_coalescing
- redundant_type_annotation
- sorted_first_last
- toggle_bool
- unneeded_parentheses_in_closure_argument
- yoda_condition
# Configuration
line_length:
warning: 160
error: 250
ignores_comments: true
ignores_urls: true
file_length:
warning: 800
error: 1200
type_body_length:
warning: 400
error: 600
function_body_length:
warning: 60
error: 100
function_parameter_count:
warning: 6
error: 8
type_name:
min_length: 3
max_length: 50
excluded:
- Treachery_iOSApp
- Treachery_iOSTests
- Treachery_iOSUITests
- Treachery_iOSUITestsLaunchTests
identifier_name:
min_length:
warning: 2
error: 1
max_length:
warning: 50
error: 60
excluded:
- id
- x
- y
- i
- p
- a
- r
- g
- b
- c
- d
large_tuple:
warning: 4
nesting:
type_level: 2
function_level: 3
reporter: xcode