-
Notifications
You must be signed in to change notification settings - Fork 21
/
.swiftlint.yml
53 lines (43 loc) · 878 Bytes
/
.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
#opt_in_rules:
# - force_unwrapping
# - empty_count
disabled_rules:
- function_parameter_count
- line_length
- variable_name
- cyclomatic_complexity
- nesting
- operator_whitespace
- redundant_discardable_let
- multiple_closures_with_trailing_closure
- empty_enum_arguments
excluded:
- Resources
- Vendor
type_body_length:
- 700 #warning
- 1000 #error
file_length:
- 1000 #warning
- 1200 #error
function_body_length:
- 125 #warning
- 200 #error
type_name:
min_length: 3 # only warning
max_length: # warning and error
warning: 50
error: 50
statement_position:
statement_mode: uncuddled_else
trailing_comma:
mandatory_comma: true
large_tuple:
- 4
- 6
custom_rules:
indentation:
name: "Indentation"
message: "Tabs should be used for indentation of lines."
regex: "(^\t* +\t*)"
severity: warning