-
-
Notifications
You must be signed in to change notification settings - Fork 886
/
.swiftlint.yml
49 lines (42 loc) · 920 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
opt_in_rules: # some rules are turned off by default, so you need to opt-in
- empty_collection_literal
- empty_string
- explicit_init
- unneeded_parentheses_in_closure_argument
- operator_usage_whitespace
line_length:
warning: 1000
error: 5000
function_body_length:
warning: 400
type_body_length:
warning: 2000
error: 2500
file_length:
warning: 2000
error: 2500
ignore_comment_only_lines: true
identifier_name:
min_length: 0
max_length: 100
disabled_rules:
- unused_setter_value
- large_tuple
- function_parameter_count
- multiple_closures_with_trailing_closure
- for_where
- cyclomatic_complexity
- nesting
- shorthand_operator
- type_name
- void_function_in_ternary
- switch_case_alignment
excluded:
- Carthage
- Pods
- Tests
- Brand/NCBrand.swift
- iOSClient/NCGlobal.swift
- iOSClient/Utility/NCLivePhoto.swift
- DerivedData
reporter: "xcode"