-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.swiftlint.yml
73 lines (61 loc) · 1.35 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
disabled_rules:
- trailing_whitespace
# - force_try
- for_where
- large_tuple
included: # paths to include during linting. `--path` is ignored if present.
- KPIHubIOS
excluded: # paths to ignore during linting. Takes precedence over `included`.
- Carthage
- Pods
- KPIHubIOS/Resources
opt_in_rules:
- attributes
- closure_end_indentation
- conditional_returns_on_newline
- explicit_init
- fatal_error_message
- first_where
- operator_usage_whitespace
- vertical_parameter_alignment_on_call
- switch_case_on_newline
- closure_spacing
- discouraged_direct_init
- unneeded_parentheses_in_closure_argument
- nesting
- nimble_operator
force_cast: warning
force_try:
severity: warning
line_length: 180
nesting:
type_level:
warning: 3
statement_level:
warning: 10
type_name:
min_length: 2
max_length:
warning: 50
identifier_name:
min_length:
warning: 2
vertical_whitespace:
max_empty_lines: 2
excluded:
- id
- ID
- URL
- iv
- cc
- ad
- up
- preferredInterfaceOrientationForPresentation
closure_end_indentation: error
conditional_returns_on_newline: error
explicit_init: error
fatal_error_message: error
operator_usage_whitespace: warning
vertical_parameter_alignment_on_call: warning
switch_case_on_newline: warning
reporter: "xcode" # reporter type (xcode, json, csv, checkstyle)