forked from nicktrienensfuzz/nstack-ios-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
78 lines (68 loc) · 1.07 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
opt_in_rules: # some rules are only opt-in
- control_statement
- empty_count
- colon
- comma
- todo
- fatal_error_message
disabled_rules:
- force_cast
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Pods/
- Carthage/
file_length:
warning: 400
error: 600
line_length:
warning: 180
error: 250
type_body_length:
- 300 # warning
- 400 # error
large_tuple: # warn user when using 3 values in tuple, give error if there are 4
- 3
- 4
nesting:
type_level: 3
statement_level: 7
type_name:
min_length: 3 # only warning
max_length: # warning and error
warning: 40
error: 45
identifier_name:
min_length: # only min_length
error: 2 # only error
excluded: # excluded via string array
- id
- key
- URL
- url
- ids
- put
- get
- sdk
- now
- csv
- int
- vc
- to
- tab
- nib
- tr
- ok
- lat
- lng
- up
- no
- me
- h1
- h2
- h3
- h4
- h5
- h6
- h7
function_parameter_count:
warning: 8
error: 15