-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint
104 lines (90 loc) · 1.66 KB
/
.swiftlint
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
excluded:
- DerivedData
- Documentation
- Scripts
disabled_rules:
- opening_brace
- trailing_comma
- closing_brace
- statement_position
opt_in_rules:
- contains_over_first_not_nil
- empty_count
- empty_string
- fallthrough
- fatal_error_message
- first_where
- force_unwrapping
- private_action
- private_outlet
- sorted_imports
analyzer_rules:
- unused_import
void_function_in_ternary:
severity: error
first_where:
severity: error
force_unwrapping:
severity: error
private_outlet:
severity: error
private_action:
severity: error
multiple_closures_with_trailing_closure:
severity: error
notification_center_detachment:
severity: error
empty_enum_arguments:
severity: error
empty_parentheses_with_trailing_closure:
severity: error
redundant_objc_attribute:
severity: error
fatal_error_message:
severity: error
fallthrough:
severity: error
empty_string:
severity: error
empty_count:
severity: error
return_arrow_whitespace:
severity: error
vertical_parameter_alignment:
severity: error
trailing_whitespace:
severity: error
vertical_whitespace:
severity: error
nesting:
type_level: 2
function_parameter_count:
warning: 4
error: 5
ignores_default_parameters: false
file_length:
warning: 500
error: 600
line_length:
warning: 170
error: 180
ignores_comments: true
type_body_length:
warning: 250
error: 400
type_name:
allowed_symbols: ["_"]
max_length:
warning: 50
error: 60
identifier_name:
allowed_symbols: ["_"]
excluded: ["id", "iv", "ok"]
severity: error
function_body_length:
warning: 100
error: 110
cyclomatic_complexity:
warning: 10
error: 20
reporter: "xcode"