-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
/
.swiftlint.yml
55 lines (55 loc) · 1.17 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
excluded:
- Pods
- ThirdParty
- SignalServiceKit/Protos/Generated
- SignalServiceKit/protobuf/Backups
# SwiftLint has trouble with these files. See <https://github.com/realm/SwiftLint/issues/3988>.
- Signal/Emoji/Emoji+SkinTones.swift
- Signal/Emoji/EmojiWithSkinTones+String.swift
disabled_rules:
- block_based_kvo
- compiler_protocol_init
- control_statement
- cyclomatic_complexity
- empty_enum_arguments
- file_length
- for_where
- force_cast
- force_try
- function_body_length
- function_parameter_count
- identifier_name
- line_length
- multiple_closures_with_trailing_closure
- nesting
- no_fallthrough_only
- non_optional_string_data_conversion
- notification_center_detachment
- opening_brace
- redundant_void_return
- static_over_final_class
- todo
- trailing_comma
- type_body_length
- unneeded_synthesized_initializer
- unused_closure_parameter
- unused_optional_binding
opt_in_rules:
- comma_inheritance
- empty_string
- sorted_first_last
inclusive_language:
override_allowed_terms: ["master", "whitelist"]
large_tuple:
warning: 4
error: 4
type_name:
min_length:
warning: 2
error: 2
max_length:
warning: 500
error: 500
excluded:
- Id
allowed_symbols: ["_"]